Public Gists by graysky

Gravatar
Fri Nov 20 07:43:55 -0800 2009
1
2
3
# Open an email in Mail.app to preview an HTML email.
#
# Usage: preview_email( MyMailer.create_welcome_msg )
Gravatar
Tue Sep 15 13:24:22 -0700 2009
1
2
3
# Run the given block +num+ times and then print out the mean, median, min,
# max, and stddev of the run. For example:
#
Gravatar
Mon Jul 13 14:34:03 -0700 2009
1
2
3
# For future reference, to use SSH to tunnel a
# port to my local machine through a firewall to
# have "localhost:5000" work (i.e. for an admin page):
Gravatar
Wed Jul 08 07:52:35 -0700 2009
1
2
3
#
# bash completion support for core Git.
#
Gravatar
Thu Jun 18 11:26:26 -0700 2009
1
2
3
HOWTO: iPhone AT&T Tethering
============================
 
Gravatar
Tue Jun 09 05:18:03 -0700 2009
1
2
3
Deploying a Rails App with EC2 + S3 + Ubuntu
============================================
 
Gravatar
Wed May 20 13:34:18 -0700 2009
1
2
3
require 'sinatra'
 
class DatabaseStreamer
Gravatar
Fri May 15 07:57:26 -0700 2009
1
2
3
#!/bin/sh
 
git remote prune origin
Gravatar
Fri May 01 10:33:46 -0700 2009
1
Dan Pickett, http://en.oreilly.com/rails2009/profile/46469
Gravatar
Wed Mar 25 20:41:42 -0700 2009
1
2
3
// The situation: Need to dynamically load a Javascript file ("ad.js") from
// a 3rd party that displays an ad into a certain div.
// The ad javascript basically does this (in reality with an iframe):
Gravatar
Tue Feb 17 12:14:56 -0800 2009
1
2
3
#!/bin/sh
 
# Append the current Lighthouse ticket number to the commit message automatically
gist: 29079 Auto-track a git branch
Gravatar
Tue Nov 25 12:41:06 -0800 2008
1
2
3
#!/bin/sh
 
# Sets up auto-tracking of a remote branch with same base name.
Gravatar
Tue Nov 18 10:12:41 -0800 2008
1
2
3
# Note to self: Normally to turn off ActiveRecord timestamps you would set:
# ActiveRecord::Base.record_timestamps = false
# in the configuration. Timestamp.rb uses class_inheritable_accessor to copy that