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
{ | |
"code": 200, | |
"data": { | |
"stats": [ | |
{ | |
"cache_hit": "31954497", | |
"hit": "32241049", | |
"noncache_hit": "286552", | |
"size": "461229299044", | |
"timestamp": "2013-07-01" |
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
<?php | |
//requires https://github.com/netdna/netdnarws-php | |
require_once('netdnarws-php/NetDNA.php'); | |
//place your alias, key, secret into this constructor | |
$api = new NetDNA("{alias}","{consumer_key}","{consumer_secret}"); | |
function purgeCacheFileFromCDN($id, $files = null) { |
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
jdorfman@air:~/github/www.gittip.com/www/assets/%version/gittip$ cat *.js >> gittip-combined.js |
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
# Example Ruby-Lang CDN urls | |
wget http://ruby-lang.rubylangorg.netdna-cdn.com/pub/ruby-core.tar.bz2 | |
wget http://ruby-lang.rubylangorg.netdna-cdn.com/pub/ruby/ruby-1.8.6-p420.tar.bz2 |
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 -s -H 'Accept-Encoding: gzip,deflate' netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css > /tmp/gzipcheck | |
$ l /tmp/gzipcheck | |
-rw-r--r-- 1 jdorfman wheel 26K May 22 09:45 /tmp/gzipcheck #26k not 124kb |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 3. in line 1.
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
Performance Chart Criteria:, | |
Test ID,Test Name, | |
52458,PostHaven S3, | |
52459,PostHaven MaxCDN, | |
Time Range,5/18/2013 11:08 - 5/18/2013 12:08 , | |
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
{ | |
"code": 200, | |
"data": { | |
"stats": [ | |
{ | |
"cache_hit": "15059045", | |
"hit": "15100565", | |
"noncache_hit": "41520", | |
"size": "205668250830", | |
"timestamp": "2013-04-01" |
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 sec2 () { ssh ec2-user@ec2-00-000-0-000.compute-1.amazonaws.com -i ~/.ssh/ec2devserver.pem; } |
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 -sI "fffd2125-1504-4a8d-8ee4-7870cf758647.objects.dreamhost.com" |grep Server |awk {'print $2'} | |
Apache |
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
#!/usr/local/bin/bash | |
#/bin/bash | |
#Which | |
Grep="`/usr/bin/which grep`" | |
Awk="`/usr/bin/which awk`" | |
Cat="`/usr/bin/which cat`" | |
Sed="`/usr/bin/which sed`" | |
Curl="`/usr/bin/which curl`" |