Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Potentially the best command line gister.

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 battle.png
Octocat-spinner-32 gist.rb
README.markdown

Gist: The Script

Works great with Gist: The Website.

Installation

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

Use

gist file.php file.rb
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

Something went wrong with that request. Please try again.