Skip to content

Instantly share code, notes, and snippets.

@FiloSottile
FiloSottile / .ArmoryRPi.md
Created September 5, 2012 22:12
Building the Armory Bitcoin client for the Raspberry Pi

Armory on the RPi

Building the Armory Bitcoin client for the Raspberry Pi

This is how I got Armory (etotheipi/BitcoinArmory; http://bitcoinarmory.com/) cross-compiled for the Raspberry Pi.

This is a great way to keep an air-gapped offline wallet for only $30 dollars for the RPi (that you can also use for other things; experiment, it's awesome) and $7 for a Class 10 4GB SD card, really easy to keep in a safe and secret place.

Dependencies

@FiloSottile
FiloSottile / griddy.py
Created September 7, 2012 16:20
Raccolta dati Rovereto 2012
#!/usr/bin/env python
#-*- coding:utf-8 -*-
# QUESTO È LO SCRIPT CHE HO USATO PER CREARE LA TABELLA INIZIALMENTE
SPKEY = "0Ap3raRAXNEtldE9WdDJtbHBzb3JxV01hTFF5cEQ4OXc"
UNAME = "filosottile.wiki"
PASSW = "xxxxxxxxxxxxxxxx"
DATA = """ *** I DATI RESTITUITI DA FACEBOOK *** """
@FiloSottile
FiloSottile / La Coscienza di un Hacker
Last active April 2, 2023 23:46
Traduzione in italiano dell'Hacker Manifesto
Questa è una traduzione in italiano del celebre Hacker Manifesto. Tutte quelle
esistenti contengono grossolani errori, perlopiù dovuti ad una carente
comprensione della materia e del periodo, o in ogni caso sono poco fedeli al
contenuto e allo spirito dell'originale. Mi auguro che questa mia traduzione non
soffra degli stessi problemi. Sail strong.
-- FiloSottile
****
Da: Phrack, Volume Uno, Issue 7, Phile 3 of 10
@FiloSottile
FiloSottile / glyphicons-halflings
Created September 26, 2012 15:06
Glyphicons data URLs
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdUAAACfCAQAAAAFBIvCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAMaFJREFUeNrtfW1sXEW6pleytF7JurZEJHxuHHcn/qA7dn/Rjsc4jW0w+ZhrPGbZONmAsw4TPMtoMySIDCASCAxiLG1u5KDMDaMg0pMRF7jXEr6rMPHeH0wgWWA2cycdPgYUrFECAby/rh237p/9U/u+p7r6nG6fU/VWpzsxS71Hidv2c+rUqfM+VW+9x/VUVZUxY8aWnVl11rzF7GPe+WEm96PCI0MscNiaxBIUuD5r2roMF5+2+pZVg0xXCg8tc8ZuxzNWnXG8635Omv6j72/WGPxj6Mf4Sbt+TMUAGxWje//gLQnG+vFIOCVf6O+dTbLCo3f2Qr/isjZFV7LVLMSicIa8GYKsncVZAv4PMiutKFmz67AC8ECg77Em4fNBuy+atgKkBo61M2tY44Fo4BvfjdgtGWGN76ofs9dBwAfU6Dw+UPiVjCdcwaObSss7KPh9hiMAm1F6hJb/lICHOjTD/SVtP25mom50SyoYwK+y5mzLOUrJ2NoroUTe7kmn/Vl1MVmRqKxaXpygKB5dWVlFrb5mQOydwB7i0J6ubFjh7npdh1XXdKUdEAmoj3W5Db4m4QE1LVCapO1XgH2D/kB08JF83SNM9ZhZf5I9+7Rz8J/I3IIfrMb5LHcjByu+UvGUKxQ/kcaLYdZ40f8JWOkw+A4iEBtlYSmddP1HFw/dKtShd1YQrncW61ZeqsIAcmYleEIEKAhx1ry8ND6aFh/8V9VHtiPdBPGObFcRVTzQgcz40RO7WEpW0ba3k2z3i6zBvlL9xO4ka/1EVnLTSa+uo+mkNzrwWDyPcz4lWOAxAp2+TrKORXoPGvm6d5aKpzt50u4573rAOfhP1CUXfpbjl36l4XWpysmXBCr6PbGqqsTnSRvReJFj4Xl9rvYfHFko/qPrb9
@FiloSottile
FiloSottile / gist:3801281
Created September 28, 2012 17:58
Makefile diff
diff --git a/Makefile b/Makefile
index 21b3469..c960bfa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,9 @@
-all: youtube-dl youtube-dl.exe README.md youtube-dl.1 youtube-dl.bash-completion LATEST_VERSION
+all: youtube-dl README.md youtube-dl.1 youtube-dl.bash-completion LATEST_VERSION
+
+# TODO: re-add youtube-dl.exe, and make sure it's 1. safe and 2. doesn't need sudo
+
@FiloSottile
FiloSottile / gist:3974635
Created October 29, 2012 16:26
youtube-dl archives diff
diff -r own/FileDownloader.py his/FileDownloader.py
477d476
< video['extractor'] = ie.IE_NAME
diff -r own/InfoExtractors.py his/InfoExtractors.py
16,17d15
< import random
< import math
100,118c98
< _VALID_URL = r"""^
< (
@FiloSottile
FiloSottile / bookmarklet_en
Last active November 3, 2022 08:35
Krumiro, a bookmarklet to send a message to all your FB friends.
javascript:(function(){var msg_m_prompt='Insert the message for males. I\'ll replace %name with the recipient name.';var msg_f_prompt='Insert the message for females. I\'ll replace %name with the recipient name.';var throttle_prompt='Insert the pause in milliseconds between a friend and the next.';var exclude_prompt='Insert the list of friends to ignore, comma separated.';var exerror_alert='%s is not in your friends, you might have made a mistake. Do you want to continue?';var time_alert='The script will take %s seconds!';var done='Done!';if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d){if(void 0===this||null===this)throw new TypeError;var c=Object(this),b=c.length>>>0;if(0===b)return-1;var a=0;0<arguments.length&&(a=Number(arguments[1]),a!==a?a=0:0!==a&&(a!==1/0&&a!==-(1/0))&&(a=(0<a||-1)*Math.floor(Math.abs(a))));if(a>=b)return-1;for(a=0<=a?a:Math.max(b-Math.abs(a),0);a<b;a++)if(a in c&&c[a]===d)return a;return-1};}function size(obj){var s=0,key;for(key in obj){if(obj.hasOwnProperty(key))s++
@FiloSottile
FiloSottile / example.py
Last active August 19, 2022 11:22
Python function to check a RSA signature
# http://stuvel.eu/files/python-rsa-doc
# You can `pip install rsa`
import rsa
### KEY GENERATION ###
### Run once, on your dev environment
### Store the private key in a secure place; add the pubkey to your program
(pubkey, privkey) = rsa.newkeys(1024)
@FiloSottile
FiloSottile / gist:4653745
Last active December 11, 2015 20:09
Coursera Algo1 class - programming assignments - test cases
39555
76914
62328
96066
78739
31842
83766
18474
86578
78136
w8KQmps-Sog Normal
{u'itag': [u'46'], u'url': [u'http://r1---sn-nx5cvox-hpad.c.youtube.com/videoplayback?itag=46&mv=m&gcr=it&ms=au&id=c3c2909a9b3e4a88&fexp=916601%2C924320%2C916626%2C920704%2C912806%2C922403%2C922405%2C929901%2C913605%2C925710%2C929104%2C906938%2C920201%2C913302%2C930101%2C919009%2C911116%2C910221%2C901451%2C919114&cp=U0hUTlRLUV9FSkNONF9MRVVCOjlCQzFTVGtQY0hv&expire=1359403100&mt=1359379334&sver=3&ip=80.180.116.236&key=yt1&upn=mDL2xkaivXQ&source=youtube&sparams=cp%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&ipbits=8&ratebypass=yes'], u'type': [u'video/webm; codecs="vp8.0, vorbis"'], u'fallback_host': [u'tc.v1.cache3.c.youtube.com'], u'sig': [u'B3CC16060B19E846C79E714F3AD5B015EA64B2F6.B68160D7FFAD9FB23DD1FF2D7696DEF85FBFB2DD'], u'quality': [u'hd1080']}
{
"fallback_host": "tc.v1.cache3.c.youtube.com",
"itag": "46",
"quality": "hd1080",
"sig": "D130E8854BE712B26FC57DB992866984F7BFB3C0.D8E051D55603C6334F90B136172E1236AC4D622B",
"type": "video/webm; codecs=\"v