Skip to content

Instantly share code, notes, and snippets.

@nk23x
Last active December 29, 2015 02:29
Show Gist options
  • Save nk23x/7601229 to your computer and use it in GitHub Desktop.
Save nk23x/7601229 to your computer and use it in GitHub Desktop.
github gist using curl, App::Nopaste
== # curl ==
get raw url for all your gists and dump content to STDOUT
<pre>
curl -s --user "USER:PASSWD" https://api.github.com/gists | \
grep raw_url | \
perl -pi -e 's/(.*)\"https:(.*)\",/https:$2/g;' | \
xargs curl
</pre>
== # see also ==
* http://search.cpan.org/~sartak/App-Nopaste-0.92/
* https://github.com/mdp/cist
* http://www.readability.com/articles/oyzq8xec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment