kind of-ish grep ready list
curl https://api.github.com/gists/public | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | sed -e 's/url/é/g' | tr é '\n' | sed -e 's/": "/ /g' -e 's/", "/ /g' -e 's/ type / /g' -e 's/", "/ /g' -e 's/",/ /g' -e 's/ "type User/ /g' -e 's/ "/ /g'
working but with cache (because rate-limiting)
# with xargs-curl
cat gist.json | grep -B 13 '"type": "application/x-sh"' | grep '"url": ' | sed -e 's/"url": "/ /g' -e 's/",/ /g' | head -n 1 | awk "{print $1}"
# get gist
xargs curl
cat gist_sh.json | grep '"content": ' > gist_run.sh
cat gist.json | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' -e 's/url/é/g' | tr é '\n' | sed -e 's/": "/ /g' -e 's/", "/ /g' -e 's/ type / /g' -e 's/", "/ /g' -e 's/",/ /g' -e 's/ "type User/ /g' -e 's/ "/ /g' | grep 'application/x-sh' | head -n 1 | awk '{print $1}'
cat gist.json | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | sed -e 's/url/é/g' | tr é '\n' | sed -e 's/": "/ /g' -e 's/", "/ /g' -e 's/ type / /g' -e 's/", "/ /g' -e 's/",/ /g' -e 's/ "type User/ /g' -e 's/ "/ /g' | grep 'application/x-sh'
cat rand_gist2.json | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | sed -e 's/url/é/g' | tr é '\n' | sed -e 's/": "/ /g' -e 's/", "/ /g' -e 's/ type / /g' -e 's/", "/ /g' -e 's/",/ /g' -e 's/ "type User/ /g' -e 's/ "/ /g'
curl https://api.github.com/gists/public | grep -A 10 '"url"\|files' | grep '"url"\|type' | grep -v 'user'
curl https://api.github.com/gists/dc499a29c34b3da1f6f337c2867db541 > rand.gist
curl https://api.github.com/gists/public | grep -A 10 '"url"\|files' | grep '"url"\|type'
cat rand_gist2.json | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | sed -e 's/url/é/g' | tr é '\n' | sed -e
cat rand_gist2.json | grep -B 2 '"forks_url"\|raw_url' | grep '"url"\|type' | grep -v 'user' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g' | sed -e 's/url/é/g' | tr é '\n' | sed -e 's/": "/ /g' -e 's/", "/ /g' -e 's/ type / /g' -e 's/", "/ /g' -e 's/",/ /g'