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
#!/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`" | |
# Scrape Nagios |
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
#place this in nginx.conf or a vhosts | |
if ($http_referer ~* (keyword|domain.com|www.domain.com)) | |
{ return 403; } |
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
cd /tmp/ | |
sudo apt-get update | |
sudo apt-get install unzip curl python-software-properties -y | |
#sudo add-apt-repository "deb http://archive.canonical.com/ 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 https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz |