Very simple script that installs homebrew:
#!/bin/bash ruby -e \"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)\"
T
Per the lead maintainer of Homebrew:
echo | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"