Command line tool for publishing gists
# read from stdin
cat file.sh | gist
# set file name
cat file.sh | gist -f "myfile.sh"
# make public
cat file.sh | gist -p
# multiple files
gist *.js
go get github.com/icholy/gist
For auth, the tool looks for an environment variable called GITHUB_TOKEN
You can generate one at: https://github.com/settings/tokens
export GITHUB_TOKEN="blah blah blah"