This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(rfc5849) [email protected]:~/Downloads/src/curlish-eeb8e55 | |
$ python curlish.py https://api.twitter.com/1.1/statuses/home_timeline.json | |
DEBUG:oauthlib.oauth1.rfc5849:Collected params: [(u'oauth_nonce', u'121349683856765093761354066233'), (u'oauth_timestamp', u'1354066233'), (u'oauth_consumer_key', u'...'), (u'oauth_signature_method', u'HMAC-SHA1'), (u'oauth_version', u'1.0'), (u'oauth_callback', u'http://127.0.0.1:62231/')] | |
DEBUG:oauthlib.oauth1.rfc5849:Normalized params: oauth_callback=http%3A%2F%2F127.0.0.1%3A62231%2F&oauth_consumer_key=...&oauth_nonce=121349683856765093761354066233&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1354066233&oauth_version=1.0 | |
DEBUG:oauthlib.oauth1.rfc5849:Normalized URI: https://api.twitter.com/oauth/request_token | |
DEBUG:oauthlib.oauth1.rfc5849:Base signing string: POST&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3Dhttp%253A%252F%252F127.0.0.1%253A62231%252F%26oauth_consumer_key%3D...%26oauth_nonce%3D121349683856765093761354066233%26oauth_si |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"curl_path": "curl", | |
"http_port": 62231, | |
"json_indent": 2, | |
"sites": { | |
"twitter": { | |
"extra_headers": {}, | |
"url_default": false, | |
"request_token_params": {}, | |
"authorize_url": "https://api.twitter.com/oauth/authorize", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shouldn't the instructions say: | |
git remote add origin [email protected]:matthewlmcclure/tramp-virtualenv.git | |
instead of or in addition to: | |
git remote add origin https://github.com/matthewlmcclure/tramp-virtualenv.git | |
? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
// ==UserScript== | |
// @name Load new tweets automatically. | |
// @namespace http://matthewlmcclure.com | |
// @match https://twitter.com/* | |
// ==/UserScript== | |
var updating = true; | |
var event = document.createEvent('MouseEvents'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat_maybe_compressed() | |
{ | |
local type='' | |
local cat='' | |
for f in "$@" | |
do | |
type=$(file -b "$f" | cut -d ' ' -f 1) | |
case $type in | |
"ASCII") | |
cat=cat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=$PATH:/usr/sbin:/usr/local/bin | |
system_profiler SPPowerDataType | \ | |
grep ' \(Charging\|Charge Remaining\|Full Charge Capacity\)' | \ | |
cut -d ':' -f 2 | \ | |
{ read remaining; | |
read charging; | |
read capacity; |
NewerOlder