Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Nibato

Gist fetcher

Recommended Posts

This program will fetch a file from gist.

As an added feature (and because I'm lazy and update my private scripts every 2 seconds), if you pass a file argument but omit the gist id, it will read the first line of the given file (if it exists) and try to parse the gist id from it. Look at the first line of the this very program/script for an example ;)

USAGE: gist [<gist id>] <file name>
If no gist id is given, and the file exists,
the program attempts to read the id on
the first line of the file in the following

I probably won't ever add push support to it. I've not tried to break this in every way imaginable, but it seems to work well enough for my own use. Scream angry words and shake a big stick at me if you have any problems with it.

Download

License

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.