defunkt / gist

Absolutely the best command line gister.

This URL has Read+Write access

John (author)
Thu Aug 20 22:06:10 -0700 2009
commit  c6ff906ac6c9ba368d1c297c37ef1706ada2274e
tree    4f63690e7a6285735daba90bc826a786f7813735
parent  03b195423ec5f883f10207412197c2e161cba1f1 parent  f982daa1a9216e92a3cb5d907fbd914d32e1c5d2
gist /
name age message
file LICENSE Thu Oct 30 11:11:58 -0700 2008 MIT [defunkt]
file README.markdown Mon Apr 27 19:05:24 -0700 2009 `github.user` not `github.username`. (Should be... [defunkt]
file battle.png Fri Oct 10 17:20:04 -0700 2008 instructions for real [defunkt]
file gist.rb Loading commit data...
README.markdown

Gist: The Script

Works great with Gist: The Website.

Installation

curl http://github.com/defunkt/gist/raw/master/gist.rb > gist &&
chmod 755 gist &&
sudo mv gist /usr/local/bin/gist

Use

gist < file.txt
echo secret | gist --private # or -p
gist 1234 > something.txt

Authentication

Just have your git config set up with your GitHub username and token.

git config --global github.user "your-github-username"
git config --global github.token "your-github-token"

You can find your token under your account.

Ninja vs Shark

Ninja vs Shark