Created
March 3, 2010 09:08
-
-
Save danmaispace/320468 to your computer and use it in GitHub Desktop.
Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# = gist(1) | |
# | |
# == USAGE | |
# gist < file.txt | |
# echo secret | gist -p # or --private | |
# echo "puts :hi" | gist -t rb | |
# gist script.py | |
# | |
# == INSTALL | |
# RubyGem: | |
# gem install gist | |
# Old school: | |
# curl -s http://github.com/defunkt/gist/raw/master/gist > gist && | |
# chmod 755 gist && | |
# mv gist /usr/local/bin/gist | |
require 'rubygems' | |
require 'gist' | |
Gist.execute(*ARGV) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment