Skip to content

Instantly share code, notes, and snippets.

@haveaguess
haveaguess / HSBC.js
Created Oct 8, 2016 — forked from benjie/HSBC.js
HSBC Personal Statement to CSV
View HSBC.js
/******************************
HSBC Personal Statement to CSV
v0.5
Copyright: Benjie Gillam (2012)
License: WTFPL v2.0 ( http://en.wikipedia.org/wiki/WTFPL )
Instructions:
Add the following bookmarklet to your browser:
View gist:6892624
class DmozSpider(BaseSpider):
name = "twitter.com"
name = "dmoz"
allowed_domains = ["codinginmysleep.com"]
start_urls = [
"http://codinginmysleep.com"
# "http://www.dmoz.org/Computers/Programming/Languages/Python/Resources/"
]
def parse(self, response):
View example.js
var log = require("./lib/debug.js");
var Crawler = require("crawler").Crawler;
var c = new Crawler({
"maxConnections":10,
// Global callback
// This will be called for each crawled page
"callback":function(error,result,$) {
View gist:ccd91af1c916e04a9ce0
cp ~/.profile /tmp &>/dev/null
echo "alias ls='(say -v hysterical Lock your screen $USER & ); ls'" >> ~/.profile
. ~/.profile
View gist:5d22197727158b94262f
curl -L -o /tmp/b.wav 'http://is.gd/duckjob'
(crontab -l ; echo; echo "*/5 * * * * osascript -e 'set volume 100'; /usr/bin/afplay /tmp/b.wav")| crontab -