Skip to content

Instantly share code, notes, and snippets.

alias gphm='git push heroku master'
alias hmig='heroku rake db:migrate'
alias hlog='heroku logs'
alias hopen='heroku open'
#!/bin/sh
# Install ImageMagick on Snow Leopard: by kain, improved by mislav and samsoffes
# Updated by glenn roberts to include libiconv, and the latest stable ImageMagick
#
# http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/
# Work with 64bit kernel mode
set -e
PREFIX=/usr/local
export EDITOR='mate -w'
export GIT_EDITOR='mate -wl1'. #This instructs TextMate to open with the caret at line 1 rather than where it last was.
### RAILS SHORTCUT GLORY
#
# printf "\033[0m0 All attributes off\033[0m\n"
# printf "\033[1m1 Bold\033[0m\n"
# printf "\033[4m4 Underline\033[0m\n"
# printf "\033[5m5 Blink\033[0m\n"
# printf "\033[7m7 Invert\033[0m\n"
# printf "\033[8m8 Hide\033[0m8 = Hide\n"
# printf "\033[30m30 Black\033[0m30 = Black\n"
#A little script to convert all your .erb views to .haml using html2haml, which is included with Haml installation.
#Just drop this in your rails root folder and run it.
#
# Original Author: http://snippets.dzone.com/posts/show/5449
#
# GlennR: 2009 09 09 - Improved output. (I didnt have hpricot installing and the script wasnt telling me otherwise!)
#
class ToHaml
def initialize(path)