Skip to content

Instantly share code, notes, and snippets.

View christopher-b's full-sized avatar

Christopher Bennell christopher-b

View GitHub Profile
require 'socket'
class Graphite
def initialize(host)
@host = host
end
def socket
return @socket if @socket && [email protected]?
@socket = TCPSocket.new(@host, 2003)
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'