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
VERSION="0.9.0" | |
BUILD="betable1" | |
set -e -x | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM |
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
VERSION="1.4.2" | |
BUILD="slack1" | |
set -e -x | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -O "https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz" | |
tar xf "go$VERSION.linux-amd64.tar.gz" |
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
[cache] | |
CACHE_QUERY_INTERFACE = <%= private_ipaddress || ipaddress %> | |
CACHE_QUERY_PORT = 7002 | |
LINE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %> | |
LINE_RECEIVER_PORT = 2013 | |
PICKLE_RECEIVER_INTERFACE = <%= private_ipaddress || ipaddress %> | |
PICKLE_RECEIVER_PORT = 2014 | |
CONF_DIR = /etc/graphite/ |
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
import os | |
import os.path | |
import sys | |
from graphite.render.hashing import ConsistentHashRing | |
instances = [] | |
unwelcome_instances = [] | |
for arg in sys.argv[1:]: | |
unwelcome = False |
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/sh | |
# Failover a member of a load balancer pair. If this Cloud Server is | |
# currently the primary, it becomes the secondary, and vice versa. | |
#/ Usage: failover-lb-member | |
set -e | |
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
VERSION="6u31-b04" | |
BUILD="betable4" | |
set -e -x | |
# Keep track of the original working directory. | |
OLDESTPWD="$PWD" | |
# Work in a temporary directory. | |
cd "$(mktemp -d)" |
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
VERSION="0.9.9" | |
BUILD="betable1" | |
set -e -x | |
# Keep track of the original working directory. | |
OLDESTPWD="$PWD" | |
# Work in a temporary directory. | |
cd "$(mktemp -d)" |
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
# The three monad laws in Python. Why not? | |
# <http://rcrowley.org/2011/09/21/monads.html> | |
# <http://homepages.inf.ed.ac.uk/wadler/topics/monads.html#essence> | |
# A monad is a wrapper. Anyone who tells you otherwise is being obtuse. | |
class M(object): | |
def __init__(self, a): | |
self.a = a | |
def __repr__(self): | |
return '<M a: %s>' % self.a |
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/bash | |
# jinf v1.2 | |
# Provides basic resource utilization information about an Accelerator | |
# Joyent Inc. 2009 | |
# Large memory support 2011-09-09 by Richard Crowley <r@rcrowley.org> | |
PATH=/usr/bin:/usr/sbin | |
zone=`zonename` | |
zoneid=$( zoneadm list -p | awk -F: '{print $1}' ) |
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
import eventlet | |
import eventlet.debug | |
import optparse | |
import socket | |
import ssl | |
eventlet.monkey_patch(os=True, | |
select=True, | |
socket=True, | |
thread=True, |