Public Gists by joshnesbitt

Gravatar
Fri Jun 19 00:31:25 -0700 2009
1
2
3
# Bash snippet to open new shells in most recently visited dir.
# Useful if you want to open a new terminal tab at the present
# tab's location.
Gravatar
Wed Jun 17 01:18:54 -0700 2009
1
2
3
# Lighter -- Campfire from the command line
# usage: ruby lighter.rb subdomain "Main Room" macournoyer@gmail
require "rubygems"
Gravatar
Wed May 06 14:02:09 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Wed Mar 18 15:10:40 -0700 2009
1
2
3
require 'rubygems'
require 'redis'
require 'rfeedparser'
Gravatar
Thu Feb 05 13:26:07 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Thu Jan 08 00:58:56 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer: