Skip to content

Instantly share code, notes, and snippets.

Ben Ritchie haveaguess

Block or report user

Report or block haveaguess

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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: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 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 -
@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:
You can’t perform that action at this time.