This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89 | |
452821e638d01377be5466cf34e90c6cc0ac29b7c97c50dd3f84d5b5b5470917 | |
9216d5d98979fb1bd1310ba698dfb5ac2ffd72dbd01adfb7b8e1afed6a267e96 | |
ba7c9045f12c7f9924a19947b3916cf70801f2e2858efc16636920d871574e69 | |
a458fea3f4933d7e0d95748f728eb658718bcd5882154aee7b54a41dc25a59b5 | |
9c30d5392af26013c5d1b023286085f0ca417918b8db38ef8e79dcb0603a180e | |
6c9e0e8bb01e8a3ed71577c1bd314b2778af2fda55605c60e65525f3aa55ab94 | |
5748986263e8144055ca396a2aab10b6b4cc5c341141e8cea15486af7c72e993 | |
b3ee1411636fbc2a2ba9c55d741831f6ce5c3e169b87931eafd6ba336c24cf5c | |
7a325381289586773b8f48986b4bb9afc4bfe81b6628219361d809ccfb21a991 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/ | |
wget http://ftp.nluug.nl/os/Linux/distr/archlinux/iso/2016.01.01/archlinux-bootstrap-2016.01.01-x86_64.tar.gz | |
# Make sure you'll have enough entropy for pacman-key later. | |
apt-get install haveged | |
# Install the arch bootstrap image in a tmpfs. | |
mount -t tmpfs none /mnt | |
cd /mnt | |
tar xvf ~/archlinux-bootstrap-2016.01.01-x86_64.tar.gz --strip-components=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# Go to dev.twitter.com/apps and create a new app; put the information here. | |
# You need the tweepy library. | |
consumer_secret = '' | |
consumer_key = '' | |
access_token_key = '' | |
access_token_secret = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import json | |
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw", | |
"1QAc9S5EmycqjzzWDc1yiWzr9jJLC8sLiY", | |
"115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn", | |
"13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94", | |
"15zGqZCTcys6eCjDkE3DypCjXi6QWRV6V1"] | |
total = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sysctl -w net.ipv6.conf.all.disable_ipv6=1 | |
sysctl -w net.ipv6.conf.default.disable_ipv6=1 | |
#or | |
sudo sh -c 'echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6' | |
# permanent | |
echo 'blacklist ipv6' >> /etc/modprobe.d/blacklist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.website.org/tutorials/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "--------------Disabling IPv6-------------------------" | |
echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.default.disable_ipv6' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.lo.disable_ipv6 ' >> /etc/sysctl.conf | |
echo 'net.ipv6.conf.wlp3s0.disable_ipv6 ' >> /etc/sysctl.conf | |
sed -i -e 's/quiet splash/quiet splash ipv6.disable=1/g' /etc/default/grub | |
update-grub2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// acurite 5n1 weather station (VN1TXC) | |
// decoding over 433MHz ASK superhet RX module | |
// on ESP8266 SDK | |
// | |
// Jens Jensen, 2015 | |
// | |
// todo: emit wx packets as json | |
// todo: add webserver code | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on-off->20DF10EF FFB24D | |
energy->20DFA956 | |
av. mode->20DF0CF3 | |
input->20DFD02F FF2AD5 | |
tv/rad->20DF0FF0 | |
FF906F | |
FFB847 | |
FFF807 | |
FFB04F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Program that outputs all PS2 scancodes via serial | |
#define BUFFER_SIZE 45 | |
static volatile uint8_t buffer[BUFFER_SIZE]; | |
static volatile uint8_t head, tail; | |
#define DATA_PIN 10 | |
#define IRQ_PIN 3 | |
// The ISR for the external interrupt |
OlderNewer