Skip to content

Instantly share code, notes, and snippets.

View mat's full-sized avatar

Matthias Lüdtke mat

View GitHub Profile
@mat
mat / INSTALL
Created August 12, 2011 19:43
Turn an Ubuntu 10.04 server into a StatsD/Graphite server
TODO:
- edit /opt/statsd/local.js
- correct the graphite host to localhost
- if desired, put 'debug: true' in there
- make the box accessible via the hostname 'graphite'
- update conf/storage-schemas.conf, see example for these retention rules:
6 hours of 10 second data
1 week of 1 minute data
5 years of 10 minute data
@mat
mat / .irbrc
Created July 26, 2011 21:25
.irbrc awesomeness
#
# Now living in https://github.com/mat/dotfiles
#
require 'benchmark'
require 'open-uri'
require 'rubygems'
require 'active_support/all'
require 'nokogiri'
@mat
mat / rlikestats
Created July 18, 2011 21:29
R like stats, command line style
#!/usr/bin/env ruby
#
# Now living in https://github.com/mat/dotfiles
#
class Rlikestats
attr_accessor :values, :count, :mean, :stdev, :lines
def initialize
@mat
mat / .gitconfig
Created February 10, 2010 13:51
.gitconfig & .gitignore - moved to mat/dotfiles
[alias]
# bread and butter
st = status
s = status -sb
d = diff
dc = diff --cached
p = pull --rebase
ir = rebase -i origin/master
amend = commit --amend
l = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an> -%C(yellow)%d%Creset %s %Cgreen(%cr) %Creset' --abbrev-commit --date=relative
@mat
mat / trakkor.js
Created September 9, 2008 21:27
Ubiquity command for http://trakkor.better-idea.org
CmdUtils.CreateCommand({
name: "trakkor",
description: "Notifies you when a web page changes via Trakkor.",
help: "Select text on the current page to be tracked.",
homepage: "http://trakkor.better-idea.org",
author: {name: "Matthias Luedtke", email: "github@matthias-luedtke.de"},
takes: {"text to track": noun_arb_text},
icon: "http://trakkor.better-idea.org/images/favicon.ico",
execute: function(textToTrack) {