Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sirkkalap/436290047375919ccfee to your computer and use it in GitHub Desktop.
Save sirkkalap/436290047375919ccfee to your computer and use it in GitHub Desktop.
What to do when your homebrew reinstall exceeds github rate limit?
petrisi@karnak  ~  brew search subversion
subversion
Error: GitHub API rate limit exceeded
Solution:
Visit github.com -> settings -> applications and add a authentication token for homebrew
Visit the given key to check it is ok
petrisi@karnak > ~ > curl -i -H "Authorization: token xxxxxxx" https://api.github.com/users/sirkkalap
HTTP/1.1 200 OK
Server: GitHub.com
Date: Tue, 03 Jun 2014 18:38:16 GMT
Content-Type: application/json; charset=utf-8
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4990
X-RateLimit-Reset: 1401824145
export the key for homebrew
export HOMEBREW_GITHUB_API_TOKEN=xxxxxxxx
@sirkkalap
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment