I'm rewriting my question, since it appears to not have been clear enough...
I am trying to find a way to pull the content from a github gist and put that content into either the terminal itself, a new document, or appended to an already created document.
To do this, I would like to type in a command in my terminal with syntax similar to the following:
gist <source> <output>
where source is the url to the gist, and output is either terminal or the exact location of a file to create / append the text with.
Original question:
I found a way to post gists to Github in the terminal with a ruby gem, however, I would actually like a way to retrieve those gists, aka, use them as snippets, as well. I'm quite sure it's possible, but I'm not very familiar with the Gist api, and I'm also a bit of a latecomer to the Linux systems.
I'm using Linux Mint 17.1 with Cinnamon, though I do have a live CD for the KDE variation of Linux Mint that I've been testing out. I would prefer an answer that includes both a gui based and cli based solution, as I'm trying to learn to better use CLI.
I know there are gist options for specific editors, but I'd prefer something that doesn't require a specific program to work.