Skip to content

Instantly share code, notes, and snippets.

View cread's full-sized avatar

Chris Read cread

View GitHub Profile
/*
This config snippet will make jmxtrans log to:
zkhost01.zk.mem.*
*/
{
"servers": [
{
@cread
cread / gist:9578236
Created March 16, 2014 03:48
keybase.md
### Keybase proof
I hereby claim:
* I am cread on github.
* I am cread (https://keybase.io/cread) on keybase.
* I have a public key whose fingerprint is 3274 6E25 397B 0805 669E FC80 9551 951E 2A82 0ED8
To claim this, I am signing this object:
@cread
cread / chefenv.sh
Created October 8, 2012 14:19
Fun little script to manage multiple Chef environments
#!/bin/bash
if [[ $# -ne 1 ]]; then
echo "Current Environment:"
readlink ~/.chef
echo "Chef environments we know about:"
ls -1d ~/.chef-*
else
CHEF_ENV=$1
echo "Switching to chef environment: $CHEF_ENV"