$ sudo mkdir -p /opt
$ sudo chown $USER: /opt
$ git clone git@github.com:Homebrew/homebrew.git /opt/homebrew