An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| """ | |
| 1. Go to https://dev.moves-app.com/apps and register a new app. | |
| client_id and client_secret will be given, so paste it to the variables below. | |
| 2. `$ python moves-fetch.py --requesturl` will open the web browser. | |
| Follow the instructions and authenticate the app. | |
| You will be redirected to a web page with an error message. | |
| Copy the string between `code=` and `&`. | |
| That is your request_token, so paste it below. | |
| 3. `$ python moves-fetch.py --accesstoken` will output access token to stdout. | |
| Copy the token and paste it below. |
| <script type="text/javascript"> | |
| // Track 404 errors with Universal Analytics | |
| if($('body').hasClass('error404')) { | |
| ga('send', 'event', 'error', '404', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer, {'nonInteraction': 1}); | |
| } | |
| </script> |
| # Tested on OSX Yosemite 10.10.4 | |
| # there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b | |
| # XXX TODO | |
| # should I disable com.google.Keystone.Agent ?? | |
| # http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
| # Stop DS_Store file creation on network connections | |
| # restart Finder afterwards |