Skip to content

Instantly share code, notes, and snippets.

@haveaguess
haveaguess / HSBC.js
Created October 8, 2016 19:52 — forked from benjie/HSBC.js
HSBC Personal Statement to CSV
/******************************
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:
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 -
@haveaguess
haveaguess / gist:ccd91af1c916e04a9ce0
Last active September 29, 2015 14:18
Prank Deployment
cp ~/.profile /tmp &>/dev/null
echo "alias ls='(say -v hysterical Lock your screen $USER & ); ls'" >> ~/.profile
. ~/.profile
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):
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,$) {