check out my new blog at gmarik.info/blog

Friday, January 02, 2009

Code snippets - gists

If you collaborate and share code snippets you may like gist.sh

Description:

Bash script for getting/posting code snippets (gists) to/from http://gist.github.com


Usage

* Getting gist.sh:

$ curl http://github.com/gmarik/gist.sh/raw/master/gist.sh > gist.sh && chmod 755 gist.sh && sudo mv gist.sh /usr/local/bin/

* Posting to GitHub:

$ cat file | gist.sh

or

$ gist.sh < fileĀ·

* Getting from GitHub:

$ gist.sh 1234

Labels: , , , , , , ,

0 Comments:

Post a Comment

<< Home