Skip to content

Instantly share code, notes, and snippets.

View zorab47's full-sized avatar
⌨️

Charles Maresh zorab47

⌨️
View GitHub Profile
@zorab47
zorab47 / rails.watchr
Created November 16, 2010 14:00
Rails Watchr
def run_all_tests
# see Rakefile for the definition of the test:all task
system( "rake -s test" )
end
def run(cmd)
puts(cmd)
system(cmd)
end
@zorab47
zorab47 / rubygem installer
Created August 2, 2010 19:05
Install Rubygems
!/bin/bash
cd /tmp
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar xzf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby ./setup.rb
#!/bin/sh
COMMAND="magick"
for FILE in *.png
do
echo "Processing $FILE"
echo $COMMAND $FILE
done
# Add the following lines to .git/hooks/prepare-commit-msg and
# ensure it is executable.
# Prefix the message with the branch's name e.g. "#STORY-23: "
# The reason the branch line is commented is to prevent accidental
# commits.
BRANCH=`git branch | grep '^*' | sed -e 's/^\* //'`
MESSAGE=`cat "$1"`
echo "#$BRANCH: $MESSAGE" > "$1"