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
/** | |
* allow for hierarchical properties | |
* {{{ | |
* if we have prefix = "edda.collection", | |
* propName = "enabled", | |
* nameContext = "test.us-east-1.aws.addresses" | |
* then it will look for (in this order): | |
* edda.collection.test.us-east-1.aws.addresses.enabled | |
* edda.collection.test.us-east-1.aws.enabled | |
* edda.collection.us-east-1.aws.addresses.enabled |
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/bin/perl | |
use Sys::Syslog qw( :DEFAULT setlogsock ); | |
setlogsock('unix'); | |
openlog('apache', 'cons', 'pid', 'local2'); | |
while ($log = <STDIN>) { | |
syslog('notice', $log); | |
} | |
closelog |
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
sudo yum install httpd | |
sudo yum install pycairo | |
sudo yum install mod_python | |
sudo yum install python-ldap | |
sudo yum install git clone [https://github.com/graphite-project/graphite-web.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
var hzAdDebug = !1, | |
hzVersion = "4.11", | |
keywords, adCont, urlPrefix = "https:" == location.protocol ? "https://ssl14.ovh.net/~hoverzoo" : "http://hoverzoom.net"; | |
function addAffiliateLinks() { | |
try { | |
if (0 != location.host.indexOf("www.amazon.")) { | |
var a = { | |
com: "-20", | |
fr: "-21", |
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 | |
#git pull | |
releaseDir=`date +%F-%H-%M-%S` | |
sudo mkdir -p /var/www/releases/$releaseDir | |
sudo chown ec2-user.ec2-user /var/www/releases/$releaseDir | |
#assumes docroot is the name of the directory in your repo to deploy | |
cp -r ./docroot /var/www/releases/$releaseDir/ |
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
/** | |
* Get cache id | |
* | |
* @return string | |
*/ | |
public function getCacheId() | |
{ | |
if (!$this->_cacheId) { | |
// -- CORE CHANGE | |
// -- remove store scoping to optimize cache usage |
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 | |
// Include the SDK along with your other project dependencies | |
// using the Composer autoloader | |
require 'vendor/autoload.php'; | |
use Aws\Common\Aws; | |
use Aws\Common\Enum\Region; | |
use Aws\DynamoDb\Exception\DynamoDbException; | |
$aws = Aws::factory(array( | |
'key' => 'aws_key_here', |
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
sudo yum install git | |
#need IAM credentials for read for all services, see https://github.com/Netflix/edda/wiki/AWS-Permissions | |
export AWS_ACCESS_KEY_ID=xxx | |
export AWS_SECRET_KEY=xxx | |
export JAVA_OPTS="-XX:MaxPermSize=256M -Xmx1g" | |
git clone git://github.com/Netflix/edda.git | |
cd edda | |
./gradlew build | |
cd .. | |
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz |
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
#download the JDK | |
#oracle's rpm.bin gets pulled down as corrupt..zzz | |
#wget --no-cookies --header "Cookie: gpw_e24=xxx" "http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64-rpm.bin" -O jdk-7-linux-x64-rpm.bin | |
#updated for version 7u11 | |
wget --no-cookies --header "Cookie: gpw_e24=xxx" http://download.oracle.com/otn-pub/java/jdk/7u11-b21/jdk-7u11-linux-x64.rpm -O jdk-7u11-linux-x64.rpm | |
sudo rpm -ivh jdk-7u11-linux-x64.rpm | |
sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 |
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
#working Nov.26.2012 | |
sudo vi /etc/hosts #add hostname to 127.0.0.1 entry | |
sudo yum install git | |
git clone https://github.com/git/git.git | |
cd git | |
git checkout v1.8.0.1 | |
sudo yum install make | |
sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker | |
sudo yum install gcc | |
sudo make prefix=/usr/local install |