Skip to content

Instantly share code, notes, and snippets.

View spangey's full-sized avatar

spangey

View GitHub Profile
`javascript: alert(document.getElementsByTagName('html')[0].innerHTML);`
@spangey
spangey / gist:3f90746c6bc57f6d1003704b254828fd
Created September 5, 2016 19:43
Brew MP Development Mode Setup
*#DEVMODE#
for(i=0;++i<101;console.log(i%5?x||i:x+'Buzz'))x=i%3?'':'Fizz'
@spangey
spangey / pil-installWpip.sh?
Created January 12, 2016 16:11
PIL [Python Imaging Library] Install => was a pain in the ass. Your welcome :0)
pip install --no-index -f https://dist.plone.org/thirdparty/ -U PIL
@spangey
spangey / commitRules
Last active January 4, 2016 17:46
commitRules
1. Consider following these [committing rules](https://atom.io/docs/latest/contributing#git-commit-messages). I like to use these [emojis](http://www.emoji-cheat-sheet.com/):
* :memo: when adding a writeup to the `Write-up` section of a task
* :floppy_disk: when adding resources for a task, e.g. files or scripts
* :link: when adding a writeup link to the `Other write-ups and resources` section of a task
* :pill: when fixing broken or corrupt stuff
* :books: when updating the structure of this repo
* :fire: when deleting files
@spangey
spangey / encryptPlainTxtAuthFilles
Created December 30, 2015 20:50
encryptPlainTxtAuthFilles
A very convenient feature of Curl is that if invoked with curl -n, it will try to read credentials
of a target service from a local .netrc file, and if found, use them for authentication. The trouble
is that these credentials default to being stored in plain text, which is something that we’d like to avoid by using GPG.
The first step here is to encrypt your .netrc:
$ gpg -r <your email> -e ~/.netrc
$ ls ~/.netrc.gpg
$ rm ~/.netrc
Now we can can pipe the decrypted output of our .netrc file from gpg, and have Curl read it in (this should go in your appropriate *rc file):
@spangey
spangey / Top-1000-Celebrity-Twitter-Accounts.csv
Created December 5, 2015 21:22 — forked from mbejda/Top-1000-Celebrity-Twitter-Accounts.csv
Top 1000 Celebrity Twitter Accounts (twitter,domain,name,type)
twitter domain name type
katyperry katyperry.com KATY PERRY celebrity
justinbieber smarturl.it Justin Bieber celebrity
taylorswift13 grmypro.co Taylor Swift celebrity
rihanna rihannanow.com Rihanna celebrity
ladygaga The Countess celebrity
jtimberlake justintimberlake.com Justin Timberlake celebrity
TheEllenShow ellentube.com Ellen DeGeneres celebrity
britneyspears britney.lk Britney Spears celebrity
Cristiano Cristiano Ronaldo celebrity
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@spangey
spangey / guido.ps3
Created November 12, 2015 20:13
Genr8 GUID's w/ powershell
<#
Running this script will make GUIDux (geoducks[gooey-ducks]) haha :/
Last updated: 1984
#>
([GUID]::NewGuid()).GUID
@spangey
spangey / turing-tweet.js
Created October 5, 2015 18:59
A tweetable turing machine
/**
* Here's a turing machine that fits into a tweet with an example program.
* Original tweet: https://twitter.com/mrrrgn/status/630419814666780673
* Gif: http://i.imgur.com/4t31zA2.gif
* Turing machines: https://www.youtube.com/watch?v=dNRDvLACg5Q
*
* Think this is neat? Consider following me for more computer silliness:
* twitter.com/mrrrgn or rss my blog linuxpoetry.com
**/