Skip to content

Instantly share code, notes, and snippets.

@nicokruger
Created March 20, 2012 06:15
Show Gist options
  • Save nicokruger/2131920 to your computer and use it in GitHub Desktop.
Save nicokruger/2131920 to your computer and use it in GitHub Desktop.
Blogger does not have code blocks
This gist will host random code listings for blogger posts.
gister.sh -x nicokruger argstester.sh - Hello World 1 2 3
gister.sh -x nicokruger 8ball.rb
gister.sh -x nicokruger foreach - $(gister.sh -s nicokruger count-files) | xargs gister.sh -x nicokruger simple-gnuplot.sh -
gister.sh -x nicokruger SimpleRL.py
Usage:
At the moment the arg parsing is a but stupid. Your arguments NEED to be in order.
1st argument - must be "-x" (for execute), "-c" (for cat), or "-s" (for store)
2nd argument - github user, eg. nicokruger
3rd argument - fileNAME of the Gist. At the moment it can't do anything with unnamed gists. So you need a gist with a filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment