This file contains hidden or 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 | |
database=$1 | |
if [ "$database" == "" ] ; then | |
echo "Usage: $0 <database>" > /dev/stderr | |
exit 1 | |
fi | |
if [ ! -r /home/darwin/check_postgres/check_postgres.pl ] ; then | |
exit 1 |
This file contains hidden or 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
--- scripts/rabbitmq-server 2009-10-06 16:45:47.000000000 +0200 | |
+++ scripts/rabbitmq-server.new 2009-11-08 12:30:39.000000000 +0100 | |
@@ -33,9 +33,12 @@ | |
NODENAME=rabbit | |
NODE_IP_ADDRESS=0.0.0.0 | |
NODE_PORT=5672 | |
+RABBIT_LISTEN_MIN_DEFAULT=4672 | |
+RABBIT_LISTEN_MAX_DEFAULT=4672 | |
SERVER_ERL_ARGS="+K true +A30 \ | |
-kernel inet_default_listen_options [{nodelay,true},{sndbuf,16384},{recbuf,4096}] \ |
This file contains hidden or 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
## monit.d/memcached.monitrc | |
check process memcached | |
group memcached | |
with pidfile /var/run/memcached/memcached.pid | |
start program = "/etc/init.d/memcached start" | |
stop program = "/etc/init.d/memcached stop" | |
if failed port 11211 4 times within 5 cycles then restart | |
if 4 restarts within 5 cycles then timeout | |
depends on memcached_bin |
This file contains hidden or 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
brew install git | |
brew update | |
brew install readline | |
brew link readline | |
brew install python | |
brew install postgres | |
brew install tmux | |
brew install pip | |
brew install nginx | |
brew install libevent |
This file contains hidden or 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/sh | |
# Don't allow console.log() statements to be committed. | |
# | |
# Add to .git/hooks/pre-commit | |
# | |
# Note: jquery.js seems to always include 1 reference | |
# in a debugging section, that one can be safely | |
# ignored. 1 reference to console.log is cool |
This file contains hidden or 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
# NOTICE: to get Nginx+Unicorn best-practices configuration see the gist https://gist.github.com/3052776 | |
$ cd /usr/src | |
$ wget http://nginx.org/download/nginx-1.2.1.tar.gz | |
$ tar xzvf ./nginx-1.2.1.tar.gz && rm -f ./nginx-1.2.1.tar.gz | |
$ wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz | |
$ tar xzvf pcre-8.30.tar.gz && rm -f ./pcre-8.30.tar.gz | |
$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz |
This file contains hidden or 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
set_unless[:rabbitmq][:flow_control_watermark] = 0.6 | |
set[:rabbitmq][:cluster] = [ | |
# Each list of hostnames defines a cluster. | |
[ | |
'mq3.internal.sazze.com', | |
'mq4.internal.sazze.com' | |
], | |
[ | |
'mq5.internal.sazze.com', | |
'mq6.internal.sazze.com' |
This file contains hidden or 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/sh | |
# | |
# this pre-commit script uses compass to compile and compress stylesheet partials | |
compass compile wp-content/themes/mytheme/ -s compact --force --no-line-comments | |
wait $! | |
git add wp-content/themes/mytheme/style.css |
This file contains hidden or 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
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
$('<div id="show-filters" style="float: right;"><a href="#">Show Filters</a></p>').prependTo('div.actions'); | |
$('#show-filters').hide(); | |
$('#changelist-filter h2').html('<a style="color: white;" id="hide-filters" href="#">Filter →</a>'); | |
$('#show-filters').click(function() { | |
$('#changelist-filter').show('fast'); | |
$('#changelist').addClass('filtered'); | |
$('#show-filters').hide(); |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
OlderNewer