Making curl + github easy / case sensitive github code search

Create a visible / easy to reuse token in by storing the token in the application name.

Screen Shot 2014-11-24 at 10.31.40 AM


Use curl to search for code (notice the per-page 100) and grep case sensitive.

curl -s -H 'Accept: application/vnd.github.v3.text-match+json' --user "TOKEN_GOES_HERE:x-oauth-basic" '' | grep 'SearchTERM'


Availble as reusable script:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s