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
| #!/usr/bin/env ruby | |
| require "rubygems" | |
| require "zookeeper" | |
| def log(msg) | |
| puts "[#{Process.pid}] #{msg}" | |
| end | |
| def debug(obj) |
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
| # example location parts of nginx.conf | |
| # add your own AWS keys, server lines etc, and set your aws domains, paths | |
| http { | |
| # you will need the luacrypto in the cpath, download from http://luacrypto.luaforge.net/ | |
| lua_package_cpath "/home/justin/lua/luacrypto-0.2.0/src/l?.so.0.2.0;;"; | |
| server { | |
| listen 80; |
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
| // Requires jQuery | |
| // KeyUP | |
| $($(document).data("events").keyup).each(function(e){ console.log(this.data); }); | |
| // KeyDOWN (MOS default) | |
| $($(document).data("events").keydown).each(function(e){ console.log(this.data); }); |
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 | |
| # | |
| # This script checks if a mysql server is healthy running on localhost. It will | |
| # return: | |
| # | |
| # "HTTP/1.x 200 OK\r" (if mysql is running smoothly) | |
| # | |
| # - OR - | |
| # | |
| # "HTTP/1.x 500 Internal Server Error\r" (else) |
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
| # HAProxy configuration - haproxy-db.cfg | |
| ## | |
| ## FRONTEND ## | |
| ## | |
| # Load-balanced IPs for DB writes and reads | |
| # | |
| frontend db_write | |
| bind 172.16.0.50:3306 |
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
| readme |
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
| # _______ _ _ _ _ _ | |
| # |__ __| | (_) (_) | | | | | |
| # | | | |__ _ ___ ___ ___ _ __ _ _ __ | |_ _ __ ___ _____ _____ __| | | |
| # | | | '_ \| / __| / __|/ __| '__| | '_ \| __| | '_ ` _ \ / _ \ \ / / _ \/ _` | | |
| # | | | | | | \__ \ \__ \ (__| | | | |_) | |_ | | | | | | (_) \ V / __/ (_| | | |
| # |_| |_| |_|_|___/ |___/\___|_| |_| .__/ \__| |_| |_| |_|\___/ \_/ \___|\__,_| | |
| # | | | |
| # |_| | |
| # | |
| # New home : https://github.com/bric3/osx-jdk5-installer |