Skip to content

Instantly share code, notes, and snippets.

@danmaispace
Created March 3, 2010 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmaispace/320468 to your computer and use it in GitHub Desktop.
Save danmaispace/320468 to your computer and use it in GitHub Desktop.
Gist
#!/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