Skip to content

Instantly share code, notes, and snippets.

View mblair's full-sized avatar

Matt Blair mblair

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mblair on github.
  • I am mattyb (https://keybase.io/mattyb) on keybase.
  • I have a public key ASDW_4s8QHg8OxWm4wGrkxQOdfigEz-MSbjtn--dxPeVkQo

To claim this, I am signing this object:

@mblair
mblair / rethinkdb.md
Last active September 2, 2015 22:25
An Operator's Look at RethinkDB

An Operator's Look at RethinkDB

Matt Blair - @mattyblair - Flipboard

The Getting Started Experience

  • It's in Homebrew and just runs (relative to, say, HBase): awesome!
  • Having packages for popular Linux distros (I use Ubuntu personally and at work): awesome!
  • Serving the GPG key over HTTP: not so awesome :-/
  • apt-get -y install rethinkdb
  • It didn't start by default- great! I hate when services do this. I then looked at the start script to see how it knew (usually daemons use /etc/default/blah, but it has custom logic to see if there's anything in /etc/rethinkdb/instances.d, which is cool).
@mblair
mblair / riemann.clj
Last active December 15, 2015 12:19
Frontend Riemann config example with upstream Riemann servers
; -*- mode: clojure -*-
(logging/init :file "frontend.log")
(def dispatch
(let
[
cpu-upstream (tcp-client :port 9002)
other-upstream (tcp-client :port 9001)
]
@mblair
mblair / hello.clj
Created May 28, 2012 07:51
The beginning.
(defn hello
"Returns greeting that includes name"
[name]
(str "Hello, " name))
(hello "matt")
@mblair
mblair / set_variables.sh
Created December 30, 2011 01:19
arggggggggghhhhh
#!/usr/bin/env bash
#You need Bash >= 4.2.0 for this.
bash --version | head -n1
set -o errexit
set -o xtrace
unset my_var