Skip to content

Instantly share code, notes, and snippets.

View aknik's full-sized avatar
🐰
Hola

Aknik aknik

🐰
Hola
View GitHub Profile
@aknik
aknik / 1 Millon Digits PI (Hex)
Last active November 15, 2015 19:33 — forked from retrohacker/pi.text
First 8366 HEX digits of pi
243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89
452821e638d01377be5466cf34e90c6cc0ac29b7c97c50dd3f84d5b5b5470917
9216d5d98979fb1bd1310ba698dfb5ac2ffd72dbd01adfb7b8e1afed6a267e96
ba7c9045f12c7f9924a19947b3916cf70801f2e2858efc16636920d871574e69
a458fea3f4933d7e0d95748f728eb658718bcd5882154aee7b54a41dc25a59b5
9c30d5392af26013c5d1b023286085f0ca417918b8db38ef8e79dcb0603a180e
6c9e0e8bb01e8a3ed71577c1bd314b2778af2fda55605c60e65525f3aa55ab94
5748986263e8144055ca396a2aab10b6b4cc5c341141e8cea15486af7c72e993
b3ee1411636fbc2a2ba9c55d741831f6ce5c3e169b87931eafd6ba336c24cf5c
7a325381289586773b8f48986b4bb9afc4bfe81b6628219361d809ccfb21a991
@aknik
aknik / replace-debian-with-arch.txt
Created January 30, 2016 18:34 — forked from m-ou-se/replace-debian-with-arch.txt
Instructions to replace a live Debian installation with Arch
# 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
@aknik
aknik / gist:5fcc42278928f964718952d784d11833
Created July 13, 2016 18:38 — forked from nileshgr/gist:3388917
Delete all twitter DMs using this python script
#!/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 = ''
import urllib2
import json
addr = [ "12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw",
"1QAc9S5EmycqjzzWDc1yiWzr9jJLC8sLiY",
"115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn",
"13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94",
"15zGqZCTcys6eCjDkE3DypCjXi6QWRV6V1"]
total = 0;
@aknik
aknik / disable_ipv6.sh
Created May 31, 2017 16:32 — forked from BradTotaro/disable_ipv6.sh
Debian 8 Disable IPV6
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
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
@aknik
aknik / disable-ipv6.sh
Created June 6, 2017 10:58 — forked from francisregan/disable-ipv6.sh
Disable IPV6 on ubuntu via grub and sysctl.conf
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
@aknik
aknik / user_main.c
Created June 19, 2017 19:51 — forked from zerog2k/user_main.c
acurite 5n1 weather station decode over 433 mhz ask rx module on esp8266
/*
// 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
*/
@aknik
aknik / LG infrared codes
Last active July 20, 2017 18:56 — forked from francis2110/LG infrared codes
Lg infrared codes for making your own remote
on-off->20DF10EF FFB24D
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F FF2AD5
tv/rad->20DF0FF0
FF906F
FFB847
FFF807
FFB04F
@aknik
aknik / PS2Scancode.ino
Created October 31, 2017 20:39 — forked from DorianRudolph/LICENSE.txt
Arduino PS2 to USB HID Keyboard Converter
//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