ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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/env python | |
import os | |
import re | |
import sys | |
import ansible.errors | |
import ansible.utils.template | |
import ansiblelint | |
import ansiblelint.utils | |
import jinja2 |
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
require 'rubygems' | |
require 'sinatra' | |
require 'net-ldap' | |
require 'digest/sha1' | |
require 'base64' | |
require 'haml' | |
LDAP_HOST = 'localhost' | |
ADMIN_DN = 'cn=admin,dc=company,dc=com' |
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
# Sets reasonable OS X defaults. | |
# | |
# Or, in other words, set shit how I like in OS X. | |
# | |
# The original idea (and a couple settings) were grabbed from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run ./set-defaults.sh and you'll be good to go. | |
# Enable crontab processing (according to https://coderwall.com/p/ry9jwg) |
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
2016-09-27 01:59:14.0724 INFO localhost-startStop-1 com.netflix.priam.identity.token.DeadTokenRetriever Looking for a token from any dead node | |
2016-09-27 01:59:15.0194 INFO localhost-startStop-1 com.netflix.priam.aws.AWSMembership Querying Amazon returned following instance in the ASG: us-west-2b --> i-0b744813 | |
2016-09-27 01:59:15.0194 INFO localhost-startStop-1 com.netflix.priam.identity.token.DeadTokenRetriever Single Account cluster | |
2016-09-27 01:59:26.0106 INFO localhost-startStop-1 com.netflix.priam.identity.token.DeadTokenRetriever Found dead instances: i-a7a994bf | |
2016-09-27 01:59:27.0901 INFO localhost-startStop-1 com.netflix.priam.identity.token.DeadTokenRetriever Calling getIp on hostname[10.10.51.143] and token[56713727820156410577229101240595408135] | |
2016-09-27 01:59:28.0173 INFO localhost-startStop-1 com.netflix.priam.identity.token.DeadTokenRetriever Calling getIp on hostname[10.10.55.88] and token[56713727820156410577229101240595408135] | |
2016-09-27 01:59:28.0173 INFO localhost-startStop-1 com.netf |
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 | |
#set -eu | |
#this looks up the nodes from the ring and rebalances them automatically | |
# We expect exactly 3 racks (currently) | |
ip_16="$(hostname -i |cut -f1,2 -d.)" | |
racks=($(nodetool ring |grep $ip_16 |awk '{print $2}' |sort -u)) | |
rack_0=($(/usr/bin/nodetool ring |grep ${racks[0]} |awk '{print $1}' | sort -n)) |
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 | |
# init script for Cassandra. | |
# chkconfig: 2345 90 10 | |
# description: Cassandra | |
# script slightly modified from | |
# http://blog.milford.io/2010/06/installing-apache-cassandra-on-centos/ | |
. /etc/rc.d/init.d/functions | |
CASS_HOME=$(ls -d /usr/local/apache-cassandra-*) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 argparse | |
import json | |
import re | |
import sys | |
import uuid | |
class OpenVPNNetworkConfiguration(object): | |
KNOWN_CONFIG_KEYS = { | |
'name': {'key': 'Name'}, |
I hereby claim:
- I am brentley on github.
- I am brentley (https://keybase.io/brentley) on keybase.
- I have a public key ASBNo9iQrU3_lbXXrgwNOzn9ROkGwko7UQRRl_aX13GcRgo
To claim this, I am signing this object:
OlderNewer