Very simple script that installs homebrew:
#!/bin/bash ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"
T
This is what yes is for:
yes '' | ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"