Day Job: Software developer @ Stanford.
Open Source contribution (if any): Various code/documentations contributions verifiable via GitHub:
require 'sinatra' | |
# Set the version of the API being run here | |
# | |
MAJOR_VERSION = 1 | |
MINOR_VERSION = 0 | |
helpers do | |
def version_compatible?(nums) | |
return MAJOR_VERSION == nums[0].to_i && MINOR_VERSION >= nums[1].to_i |
<script> | |
// This is a fork of https://gist.github.com/1005886 | |
var coderwallJSONurl ="http://www.coderwall.com/hermanjunge.json?callback=?"; | |
var height = 75; | |
var width = 75; | |
$(document).ready(function(){ | |
$.getJSON(coderwallJSONurl, function(data) { | |
$.each(data.data.badges, function(i, item) { | |
# via https://gist.github.com/419201#file_gitconfig.bash | |
# Install (from Matt's gist) these useful Git aliases & configurations with the following command: | |
# $ bash <(curl -s https://raw.github.com/gist/419201/gitconfig.bash) | |
git config --global color.ui auto # colorize output (Git 1.5.5 or later) | |
git config --global color.interactive auto # and from 1.5.4 onwards, this will works: | |
echo "Set your name & email to be added to your commits." | |
echo -n "Please enter your name: " |
require 'thread' | |
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'betabrite' | |
require 'psych' | |
require 'usb' | |
class StreamClient | |
def initialize user, pass |
require 'formula' | |
class Dpkg <Formula | |
url 'http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.1.1.tar.bz2' | |
md5 '73fb4d67dbc9f9f14a776187429ce3f1' | |
homepage 'http://en.wikipedia.org/wiki/Dpkg' | |
def patches | |
#Fixes the PERL_LIBDIR |
There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.
Get a Linode VM in the UK. The 512MB server for $20 works just fine. (If you want to use my referral link, go for it: http://bit.ly/OuzdVe)
Follow the standard OpenVPN installation documentation. (Basically, 'apt-get install openvpn' or 'yum install openvpn' and then follow these docs: http://openvpn.net/index.php/open-source/documentation/howto.html). For an OS X client, I prefer Viscosity: http://www.thesparklabs
require 'mechanize' | |
require 'twilio-ruby' | |
# Need to save a file with the html body to refer to later in the script since this is run | |
# in a cron job. | |
if File.exists?("rubyregistration.html") | |
body = File.read("rubyregistration.html") | |
else | |
File.open("rubyregistration.html","w+") do |file| |