Skip to content

Instantly share code, notes, and snippets.

Justin Dorfman jdorfman

Block or report user

Report or block jdorfman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6105911
//place your alias, key, secret into this constructor
$api = new NetDNA("{alias}","{consumer_key}","{consumer_secret}");
function purgeCacheFileFromCDN($id, $files = null) {
jdorfman / gist:3668672
Created Sep 7, 2012 — forked from kazad/gist:3628157
Leftronic API Access
View gist:3668672
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`"
# Scrape Nagios
jdorfman / gist:2501118
Created Apr 26, 2012 — forked from netdna/gist:2501099
nginx - return a 403 response for certain referers
View gist:2501118
#place this in nginx.conf or a vhosts
if ($http_referer ~* (keyword||
{ return 403; }
jdorfman /
Created Apr 10, 2012 — forked from aaronshaf/
Install ElasticSearch on Ubuntu 10.10-11.04
cd /tmp/
sudo apt-get update
sudo apt-get install unzip curl python-software-properties -y
#sudo add-apt-repository "deb lucid partner"
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
You can’t perform that action at this time.