Skip to content

Instantly share code, notes, and snippets.

View RadioactiveMouse's full-sized avatar

Tom Townsend RadioactiveMouse

View GitHub Profile
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
@toastdriven
toastdriven / RiakHttp10k.txt
Created October 29, 2010 14:26
Benching Riak's performance with the Python client.
[daniel@Europa:Desktop]: python riak_test.py
Inserting 0
Inserting 1000
Inserting 2000
Inserting 3000
Inserting 4000
Inserting 5000
Inserting 6000
Inserting 7000
Inserting 8000
@vvuk
vvuk / install-ubuntu
Last active March 1, 2018 06:58
Install Ubuntu 13.04 on Chromebook
#!/bin/bash
#
# Version 0.2, for Ubuntu 13.04 (Raring)
#
# Based on Chrubuntu 34v87 script
BASE_IMAGE_FILE="http://mirrors.med.harvard.edu/ubuntu-cdimage/lubuntu/releases/13.04/release/lubuntu-13.04-preinstalled-desktop-armhf+ac100.tar.gz"
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.
@harthur
harthur / tix.js
Last active May 21, 2016 15:23
How I got tickets to the Gymnastics finals at the Olympics
/* This node.js script checks the Olympics website for any new Women's
* Gymnastics tickets. Every five minutes it fetches the available tickets
* page for the event, and uses the cheerio (https://npmjs.org/package/cheerio)
* module to parse the page and look for the UI element that indicates there
* are tickets.
*
* If there are any tickets it plays a song using node's built in `exec()`
* function to call OS X's command line utility to play a sound file. It also
* uses the growl module (https://npmjs.org/package/growl) to post a growl
* notification.