Skip to content

Instantly share code, notes, and snippets.

View CyborgPatrick's full-sized avatar

Tómas Páll Máté CyborgPatrick

View GitHub Profile
### Keybase proof
I hereby claim:
* I am cyborgpatrick on github.
* I am tomaspmate (https://keybase.io/tomaspmate) on keybase.
* I have a public key ASAN1CXY284RXECeStNIBWTHZ76aw_5IdECmFhJJD5P_4go
To claim this, I am signing this object:
@CyborgPatrick
CyborgPatrick / unwatchAll
Created August 5, 2014 16:59
Unwatch all repos in an organisation
var auth_token = $("input[name='authenticity_token']")[0].value;
$("a.repo-name[href^='/THEORG']").each(function($elem){
$.post("/notifications/subscribe", {
authenticity_token : auth_token,
do : 'included',
'repository_id' : $("form.js-unsubscribe-form #repository_id", $(this).parent("li")).val()
});
});
@CyborgPatrick
CyborgPatrick / gist:9708570
Last active August 29, 2015 13:57 — forked from ahankinson/gist:985173
Install wxPython with homebrew
# These instructions work for OS X 10.6 with homebrew pre-installed.
brew install python --framework
brew install gfortran
# install other dependencies through pip:
pip install numpy
# the regular pip build for matplotlib is b0rken, and it can't find the built-in libraries for OSX
export LDFLAGS="-L/usr/X11/lib"