Last active
December 29, 2015 02:29
-
-
Save nk23x/7601229 to your computer and use it in GitHub Desktop.
github gist using curl, App::Nopaste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== # 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