Thursday, August 25, 2016

Everything I learned about linux in the last whatever, 1471480803

So I opened a repo with oneliners here:
https://github.com/bsdpunk/one-liners/
So some of the notable new stuff in that repo: Get all the repos of a user on github(replace bsdpunk):

http https://api.github.com/users/bsdpunk/repos |python -m json.tool| grep '"name"' | awk -F: '{print $2}' | tr -d \" | tr -d , > repo
Then use that list to backup all your projects(replace bsdpunk):
 for i in $(cat repos); do git clone https://github.com/bsdpunk/$i; done
Your mileage may vary. I also forked Troy Engel's github repo called scripts, which has a bunch of useful bash stuff. Troy's the sharpest guy I never met at RackSpace, if that makes any sense. Well I also never met Major Hayden so maybe not. Seriously, take a minute and read through Major's blog.

No comments: