Skip to content

Instantly share code, notes, and snippets.

@BenHall
BenHall / graphite.md
Created September 5, 2012 20:36 — forked from caged/graphite.md
Installing Graphite on OS X Mountain Lion

This is a general overview (from memory) of the steps I used to install graphite (http://graphite.wikidot.com) on OS X Lion. I think the steps are in order but YMMV. Please fork and fix if you find an error.

Install Python 2.7.2

brew install python

Check your env

$ python --version
@BenHall
BenHall / watchr script
Created December 16, 2010 00:59 — forked from markbates/watchr script
Watchr script for RSpec and Cucumber with Growl notifications
ENV["WATCHR"] = "1"
system 'clear'
def growl(message)
growlnotify = `which growlnotify`.chomp
title = "Watchr Test Results"
puts message
image = message.match(/\s0\s(errors|failures)/) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png"
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'"
system %(#{growlnotify} #{options} &)