Skip to content

Instantly share code, notes, and snippets.

@obfuscurity
obfuscurity / README.md
Created January 22, 2019 21:16 — forked from jssjr/README.md
Graphite is great, but unfortunately the web UI itself isn't instrumented. (Yo dawg, I heard you like graphite.) Enable the directives to log render and cache performance, then monitor this with collect's tail plugin so you can visualize graphite performance.

render-performance

## haproxy.cfg
global
user haproxy
group haproxy
daemon
maxconn 16384
pidfile /var/run/haproxy.pid
defaults
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
instances = []
unwelcome_instances = []
for arg in sys.argv[1:]:
unwelcome = False
@obfuscurity
obfuscurity / gist:3707081
Created September 12, 2012 14:40 — forked from soffes/gist:3428401
Recruiter Reply
Thank you for your inquiry.
I am only looking for contract work. My rate is one thousand dollars an hour ($1,000/hr). I charge ten thousand dollars ($10,000) for referrals.
If this does not fit the positions you are looking for, please remove me from your list. I will also not refer someone else in my place.
Thanks,
Jason
@obfuscurity
obfuscurity / migrate.rb
Created August 2, 2012 15:15 — forked from pcreux/migrate.rb
Migrate from Heroku Shared DB to Postgres `dev` Plan
#!/usr/bin/env ruby
#
# This script migrates your Heroku app from a Shared DB to a Postgres `dev` Plan
#
# Usage:
# ruby migrate.rb [app_name]
#
def usage
puts "migrate.rb [app_name]"