Skip to content

Instantly share code, notes, and snippets.

@PeterTheOne
PeterTheOne / plz-coord-austria.csv
Created August 17, 2016 16:09
PLZ coordinates austria, August 2016, Geocoded with OSM
9163 Unterbergen K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.4781017 14.2559153 225
9135 Bad Eisenkappel K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.4812105646964 14.6062427452371 225
9170 Ferlach K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5253656509035 14.3104077671798 225
9182 Maria Elend K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5298704238434 14.0761492080012 225
9181 Feistritz im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5322359733192 14.1353740987715 225
9183 Rosenbach K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5364895720495 14.0376219311205 225
9162 Strau K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.538069 14.263217 225
9173 St. Margareten im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5424186613725 14.4066575369548 225
9602 Thörl-Maglern K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5432506251966 13.6473041244356 225
9072 Ludmannsdorf K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5434291311274 14.1433352631987 225
@younesbelkada
younesbelkada / finetune_llama_v2.py
Last active May 13, 2024 12:11
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@marcelosomers
marcelosomers / git-php-webhook.php
Last active May 13, 2024 12:10
A basic webhook for deploying updates to repos on Github to your local server
<?php
/**
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below).
*
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/
*
* INSTRUCTIONS:
* 1. Edit the variables below
* 2. Upload this script to your server somewhere it can be publicly accessed
@genakolechenkov
genakolechenkov / webos-aid-patcher.rs
Created May 13, 2024 12:07 — forked from kitsuned/webos-aid-patcher.rs
Bypass App ID assertion in appinstalld on webOS Signage TV
use std::{
fs,
fs::File,
io::{BufRead, BufReader},
os::raw::c_void,
path::{PathBuf},
};
use goblin::elf::Elf;
use nix::{
@Shellnco
Shellnco / ecverify.sol
Created May 13, 2024 12:07 — forked from axic/ecverify.sol
Ethereum ECVerify
//
// The new assembly support in Solidity makes writing helpers easy.
// Many have complained how complex it is to use `ecrecover`, especially in conjunction
// with the `eth_sign` RPC call. Here is a helper, which makes that a matter of a single call.
//
// Sample input parameters:
// (with v=0)
// "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad",
// "0xaca7da997ad177f040240cdccf6905b71ab16b74434388c3a72f34fd25d6439346b2bac274ff29b48b3ea6e2d04c1336eaceafda3c53ab483fc3ff12fac3ebf200",
// "0x0e5cb767cce09a7f3ca594df118aa519be5e2b5a"
[
{
"backcolor": "#141414",
"name": "Adelheid",
"author": "floookay",
"switchMount": "cherry",
"switchBrand": "gateron",
"pcb": true
},
[
@diasporx
diasporx / JetBrains products Activation code until 14 October 2024
Last active May 13, 2024 12:06
JetBrains products Activation code until 14 October 2024
I2A0QUY8VU-eyJsaWNlbnNlSWQiOiJJMkEwUVVZOFZVIiwibGljZW5zZWVOYW1lIjoiVU5JVkVSU0lEQURFIEVTVEFEVUFMIERFIENBTVBJTkFTIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77yaSkVU5YWo5a625qG25r+AIOa0u+W3peS9nOWupCAgcmVuIHpodW4gZGlhbiBtaW5n77yBIiwiYXNzaWduZWVFbWFpbCI6IlJvYmJ5X1dlbmlnZXJAb3V0bG9vay5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMTAtMTQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNDIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNGIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkRTIiwicGFpZFVwVG8iOiIyMDI0LTEwL
@bedawi
bedawi / disabledgpu.sh
Created February 5, 2023 09:37
MacBookPro5,3, Fedora Linux: Disable discrete GPU and optimize power consumption
#!/bin/bash
echo 1 > /sys/bus/pci/devices/0000\:02\:00.0/remove