Skip to content

Instantly share code, notes, and snippets.

@passcod
passcod / -
Last active December 27, 2015 03:38 — forked from anonymous/-
~ Asciicast recording started. Hit ^D (that's Ctrl+D) or type "exit" to finis
h.
4:09PM passcod ~/nanobot
≈ python -v
import _frozen_importlib # frozen
import imp # builtin
import sys # builtin
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
@passcod
passcod / pope-us.irclog
Last active December 26, 2015 04:39
The Pope comes to the US…
22:11:29 <Skalar> There's that joke about the pope coming to the US
22:12:07 <Skalar> and how he heard the roads are so long and straight.. and he wanted to drive...
so... after he got off the plane.. he signaled to the driver of his limo that
he wanted to drive.
22:13:06 <Skalar> driver didn't think it was a good idea.. but what could he do? so the pope
gets into the drivers' seat of the limo... starts driving himself.... faster
and faster.. with a lead foot.. he wanted to see what the limo would do....
he hits about 90mph and... blue lights.... cop flips on the light bar and he's
forced to pull over.. his fun ended almost as soon as it started
22:13:21 <Skalar> cop walks up to the tinted windows of the limosine, and knocks on the window
Testing jasmine specs via phantom
......................x
Shared state ?!?!:: .init:: calls .add() on the instance: failed
Expected [ 18, 36, 1, 2, 3 ] to equal [ 1, 2, 3 ]. (1)
23 specs in 0.121s.
>> 1 failures
@passcod
passcod / LICENSE
Last active December 24, 2015 20:59
Public Domain Dedication — Full text, suitable for use as a LICENSE file.
Public Domain Dedication (CC0 v1.0)
https://creativecommons.org/publicdomain/zero/1.0/
This work is dedicated to the Public Domain; the author waives all of
their rights to the work worldwide under copyright law, including all
related and neighbouring rights, to the extent allowed by law.
== For Humans ==
@passcod
passcod / music-for-making.markdown
Created September 17, 2013 08:35
My playlist for moments of epic creativity

Music for Making

Air Traffic Controller

  • Can't Let Go

Apocalyptica

  • Quutamo
@passcod
passcod / moncon
Created September 7, 2013 09:47
Script used to restart wifi whenever ping drops
#!/usr/bin/bash
if [[ $(id -u) != 0 ]]; then
sudo $0
exit
fi
nlc=0
itv=2
while true; do
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
class Polyomino(object):
def __init__(self, iterable):
self.squares = tuple(sorted(iterable))
def __repr__(self):
@passcod
passcod / retroshare-passcod.rcp
Created September 2, 2013 23:44
Retroshare certificate. Also signed with my personal GPG key (04) for verification.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP:SDK v0.9
xsBNBFIlHDMBCADL5IabXd7IBx7vMb/gWAukrXB+60UiX2Zttwjb9aM6GVdpEM3V
XjoYIZPB/tl4LDXT/FSRuy5XJg4X9HVQ4IxnZkjXyX25/nxnzxH37tLNNJiCNrWX
ndZHVWKY6CqbYIdseBDefZKw8fT1ZJmM7qAzK1ZlGbf0U7xXDh5dgEYth22LHYAI
zhrXbpRRKXpaxXo7ephBCPpC9R90c/lErTSAzhIvOphZbUnM9+37LKldgIK3XkPI
nO8LND0zpiTFhUrlRqX09S5vB3xVM1XD6fHkZwRXEBSI9rj218B0z1sOs+69VK2D
o2cx/jZZZaRhsr5pDZ/Vy6lFm73xbZWhtU+JABEBAAHNO3Bhc3Njb2QgKEdlbmVy
YXRlZCBieSBSZXRyb1NoYXJlKSA8cmV0cm9zaGFyZUBwYXNzY29kLm5hbWU+wsBf
@passcod
passcod / cover-letter.markdown
Last active December 22, 2015 03:09
Hidden Corners Architecture

Mr & Mrs Dupond
4 Ddres St
0110 Whangarei

20th August 2013

Dear {names},
Thank you for the opportunity to be involved in the design of your home at Abbey Caves road.

Based in our preliminary discussions on the 25th of last month, I have prepared the following Offer of Service for your consideration. It includes a few notes I have recorded so far, which you may like to amend or add to in order to further define the brief. When you have had the chance to read through this document, and if you agree with the terms outlined, please do sign the last page where indicated on both copies and return one of them to me.

@passcod
passcod / gist:6350405
Created August 27, 2013 06:53 — forked from anonymous/-
[10:26:16] <devinus> phinze: apparently Oracle won't let you download the dmg until you have a cookie in your browser
[10:26:19] <devinus> grooosss
[10:26:31] <phinze> devinus: ewww
[10:27:25] <phinze> stupid oracle
[10:27:38] <phinze> here's somebody trying to work out how to script it http://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/
[10:27:53] <phinze> but then we're getting into annoyingly murky territory
[10:29:47] <devinus> phinze: should i give up or is there a way to pass a cookie along?
[10:45:24] <phinze> devinus: looking at CurlDownloadStrategy quick
[10:46:25] <devinus> phinze: in curl, this works: curl -b gpw_e24=http%3A%2F%2Fwww.oracle.com -O -L http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-macosx-x64.dmg
[10:46:40] <phinze> so i guess theoretically we could subclass it and override CurlDownloadStrategy#_fetch