Very simple script that installs homebrew:
#!/bin/bash ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"
T
This works fine for me,
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null