Skip to content

Instantly share code, notes, and snippets.

@csm
csm / xkcd.py
Created August 10, 2011 22:57
Random passphrase generator.
# RE: http://xkcd.com/936/
import random
n = 4
f = open('/usr/share/dict/words', 'r')
w = f.readlines()
print " ".join(map(lambda x : x.strip(), random.sample(w, n)))
@csm
csm / lion-airdrop.txt
Created July 25, 2011 04:43
Lion ifconfig -- airdrop on
p2p7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether XX:XX:XX:XX:XX:XX
inet6 fe80::1855:caff:fef2:5bc7%p2p7 prefixlen 64 scopeid 0x8
media: autoselect
status: active
@csm
csm / lion-ifconfig.txt
Created July 25, 2011 04:28
Lion ifconfig -- new interface
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether XX:XX:XX:XX:XX:XX
media: autoselect
status: inactive