Skip to content

Instantly share code, notes, and snippets.


Justen Walker justenwalker

View GitHub Profile
justenwalker /
Created Aug 30, 2014
Ansible Dynamic Inventory script for etcd

etcd dynamic inventory script

Generarates inventory for ansible from etcd using python-etcd library.

The script assumes etcd.ini to be present alongside it. To choose a different path, set the ETCD_INI_PATH environment variable:

export ETCD_INI_PATH=/path/to/etcd.ini
* @namespace PasswordChecker
* Utility class to check a password's complexity
* {@link PasswordChecker.strength} returns an object containing:
* - *summary* The results of {@link PasswordChecker.summary}
* - *total* The total raw score for the password
justenwalker / Vagrantfile
Created Jan 10, 2014
Vagrant file for testing graphite
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<eos
#! /bin/bash
# Prerequisites
apt-get update
justenwalker /
Created Jan 9, 2014
Cassandra unsafe assassinate - removing a dead node from the cluster

Unsafe Node Assassinate

On Cassandra 1.1.x, nodetool removetoken on a dead node hangs. The only way to reliably remove the node from the cluster is to use an undocumented JMX command to force the remove of the node from gossip.

Upgrading to 1.2.x and above should obviate these steps in favor of nodetool removenode - See 1.2 Docs

It's probably also a good idea to run a nodetool repair after this operation - See wiki