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
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
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
#!/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
/** | |
* 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
jar 'com.netflix.hystrix:hystrix-core', '~>1.2.16' |
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
https://papertrailapp.com/systems/setup | |
# sudo sh | |
# cd /etc | |
# wget https://papertrailapp.com/tools/syslog.papertrail.crt | |
# yum install rsyslog-gnutls |
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
#Sublime Text 2 + Ensime for scala development | |
www.sublimetext.com/2 | |
http://wbond.net/sublime_packages/package_control/installation | |
https://github.com/sublimescala/sublime-ensime | |
#x11 forwarding (xquartz) | |
http://xquartz.macosforge.org/landing/ |
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 https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
wget http://apache.claz.org/hadoop/common/hadoop-1.2.0/hadoop-1.2.0-bin.tar.gz | |
gzip -d hadoop-1.2.0-bin.tar.gz | |
tar xvf hadoop-1.2.0-bin.tar | |
cd hadoop-1.2.0 | |
mkdir input | |
cp ../conf/*.xml ./ | |
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
export HADOOP_HOME=/Users/ralphtice/hadoop/hadoop-1.2.0/ | |
export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk" |