Skip to content

Instantly share code, notes, and snippets.

@tmc
Last active December 20, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmc/6057766 to your computer and use it in GitHub Desktop.
Save tmc/6057766 to your computer and use it in GitHub Desktop.
cd /tmp
if [[ "`uname`" == 'Linux' ]]; then
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz
else
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.darwin-amd64.tar.gz
fi
tar xf go.tar.gz
export GOPATH=/tmp
export GOROOT=/tmp/go
/tmp/go/bin/go get github.com/traviscline/hn
/tmp/bin/hn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment