Skip to content

Instantly share code, notes, and snippets.

View christophermoura's full-sized avatar

Christopher Moura christophermoura

View GitHub Profile
#!/usr/bin/env ruby -w
# Ruby beautifier, version 2.1, 09/11/2006
# Copyright (c) 2006, P. Lutus
# Released under the GPL
# To use in TextMate:
# Make a command that calls "~/bin/beautify" with
# Input: Selected Text or Document
# Output: Replace Selected Text
#!/usr/bin/env ruby -w
# Rename all files in the directory. The new names will be generated from a basename.
#
# AUTHOR: Daniel Lopes
# October 20, 2009
#
# USAGE:
# rename-files . base_name.jpg #=> base_name1.jpg, base_name2.jpg, etc
require "pathname"
[alias]
st = status
ci = commit
co = checkout
svnup = svn fetch
sup = svn fetch
svnci = svn dcommit
sci = svn dcommit
up = pull --rebase
sreb = svn rebase
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"