Upload code to https://gist.github.com. More information: https://github.com/defunkt/gist.
gist --login
gist file.txt file2.txt
gist --private --description "A meaningful description" file.txt
stdin
and create a gist from it:echo "hello world" | gist
gist --list
gist --list username
gist --update GIST_ID file.txt