Skip to content

Instantly share code, notes, and snippets.

View lglenn's full-sized avatar

Larry Glenn lglenn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lglenn on github.
  • I am lglenn (https://keybase.io/lglenn) on keybase.
  • I have a public key ASAlyGAlrmNAStUYdleqRSOTdhZyt-cBfS3n67M8x9y-rAo

To claim this, I am signing this object:

@lglenn
lglenn / sabotage.mkd
Last active November 2, 2015 21:53
Excerpts from the OSS "Simple Sabotage Field Manual"

11 General Interference with Organizations and Production

  1. Organizations and Conferences

  2. Insist on doing everything through "channels." Never permit short-cuts to be taken in order to expedite decisions.

  3. Make "speeches," Talk as frequently as possible and at great length.

  4. Illustrate your “points” by long anecdotes and accounts of personal experiences. Never hesitate to make a few appropriate “patriotic” comments

@lglenn
lglenn / fixnet.sh
Created March 23, 2015 13:35
A shell script that will undo the damage done to boot2docker by the Cisco AnyConnect VPN client
#!/bin/bash
if [[ "$1" = "-h" ]]
then
echo;
echo "USAGE: $0 [network number] [vm-name]"
echo;
echo "Where the optional arguments are:";
echo
echo "vm-name: the name of the boot2docker vm, as obtained from VBoxMangage list vms (default: boot2docker-vm)"
@lglenn
lglenn / statsd_graphite.mkd
Last active August 29, 2015 14:00
Statsd Counters and Graphite

A Statsd/Graphite Gotcha

I just stood up a simple statsd/graphite to track some metrics generated by one of our internal tools.

It all seemed pretty straightforward, but when I started pumping my first counter to graphite (via statsd-ruby), I was puzzled to see that my data was mostly zeroes, with a few sporadic exceptions.

It turned out that my problem was pretty simple, but the solution wasn't super-obvious, and it seems to me that pretty much anyone (certainly anyone with my weakness for doc-skimming) is going to run across it. So here's what I found, and what I did to make things right.

In essence:

@lglenn
lglenn / opts.rb
Created May 22, 2013 12:59
Option handling from Boxen Puppetfile....
def github(name, version, options = nil)
options ||= {}
options[:repo] ||= "boxen/puppet-#{name}"
mod name, version, :github_tarball => options[:repo]
end
@lglenn
lglenn / mountain-lion-brew-setup.markdown
Created August 25, 2012 13:37 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@lglenn
lglenn / memcache_dali.mkd
Created July 19, 2012 13:47
Getting Memcache and Ruby to Work Together on a Mac with Dali

I've just spent a few minutes banging my head against a wall trying to get Ruby (1.9.2) to work with Memcache, via the Dalli Ruby gem, on my Mac.

Following some pretty simple, clear directions I found via the web, I did this:

brew install memcached

...then

@lglenn
lglenn / mobydick.mkd
Created February 16, 2012 16:53
Moby Dick

Moby Dick

Chapter 1

Call me Ishmael. Some years ago - never mind how long precisely - having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen, and regulating the circulation. Whenever I find myself growing grim about the mouth; whenever it is a damp, drizzly November in my soul; whenever I find myself involuntarily pausing before coffin warehouses, and bringing up the rear of every funeral I meet; and especially whenever my hypos get such an upper hand of me, that it requires a strong moral principle to prevent me from deliberately stepping into the street, and methodically knocking people's hats off - then, I account it high time to get to sea as soon as I can. This is my substitute for pistol and ball. With a philosophical flourish Cato throws himself upon his sword; I quietly take to the ship. There is nothing surprising in this. If th