Skip to content

Instantly share code, notes, and snippets.

View johnthethird's full-sized avatar

John Lynch johnthethird

View GitHub Profile
#!/bin/bash
# ubuntu @ ec2 (canonical official ubuntu-images-us - I grabbed 64bit)
# then login as 'ubuntu' & start working - however this should be reproducable
# anywhere you have tip riak installed...
sudo perl -p -i -e 's/universe$/universe multiverse/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade -y
/**
IMPORTANT: Requires this version of jquery
until 1.3.3 comes out http://gist.github.com/186325
ALSO: This is very dirty still and has not been
abstracted for use. It is just solving our immediate problems.
Use cases that must pass (and should be tested someday):
* Clicking on links updates layout
* Click around a bit and then use back/forward buttons
class Canine
VERSION = '1.3'
def initialize(&block)
@commands = Hash.new
@default = @latest = :commands
@empty = nil
@auto = {
:commands => hash_command("commands","Show a list of commands",Proc.new {
@commands.each { |cmd| c = cmd[1]
name = c[:name].to_s