Skip to content

Instantly share code, notes, and snippets.

View jhenry's full-sized avatar

Justin Henry jhenry

View GitHub Profile
@jhenry
jhenry / tmux_textaurant.sh
Created January 11, 2011 02:50 — forked from dpickett/tmux_textaurant.sh
./tmux_starter_pistol.sh projectname
export PROJECT_NAME=$1
export WORKING_DIR=~/working/active/$PROJECT_NAME
cd $WORKING_DIR;
tmux start-server
tmux new-session -d -s $PROJECT_NAME -n work
tmux new-window -t$PROJECT_NAME:1 -n server
tmux new-window -t$PROJECT_NAME:2 -n test
#!/usr/bin/env ruby -wKU
text_source = ARGV[0] || 'ipsum'
filename = File.join(File.dirname(__FILE__), text_source + '.txt')
copy_to_use = File.read(filename)
if text_source == 'ipsum'
chopped_copy = copy_to_use.scan(/.*?[.!?](?:\s|$)/)
@jhenry
jhenry / rails-template-draft
Created September 16, 2009 03:01
rails template with testing harnesses, jquery, etc
# Clear out stuff we won't use
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run "rm -f public/javascripts/*"
run "rm -rf test/"
# Create the readme file
run "echo TODO: Explain yourself! > README.markdown"