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

Keybase proof

I hereby claim:

  • I am obfuscurity on github.
  • I am obfuscurity (https://keybase.io/obfuscurity) on keybase.
  • I have a public key whose fingerprint is 7AA7 48DD AE57 2D63 8E45 0E3F C035 39F0 4566 1653

To claim this, I am signing this object:

@obfuscurity
obfuscurity / reunion.md
Created March 15, 2016 17:04
Heroku Ops Reunion

Heroku Ops Reunion

  • Jason Dixon
  • Mark Imbriaco
  • Michael Gorsuch
  • Ricardo Chimal Jr
  • Michael Hale
  • Curt Micol
  • Doug Mitchell
  • Dylan Egan
## 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]"
@obfuscurity
obfuscurity / gist:1409393
Created November 30, 2011 15:11
Migration run for blog post
$ heroku config:add VERSION=2
Adding config vars and restarting app... done, v7
VERSION => 2
$ heroku run rake db:migrate:to
Running rake db:migrate:to attached to terminal... up, run.2
(in /app)
<= sq:migrate:to version=[2] executed
$ heroku run rake db:migrate:down
@obfuscurity
obfuscurity / gist:1409169
Created November 30, 2011 14:04
003_BootstrapAccount.rb for blog post
# migrations/003_BootstrapAccount.rb
Sequel.migration do
up do
timestamp = Time.now
self[:users].insert(
:username => "admin@foobar.com",
:password => "$2a$10$BpKGMuwioxQrfvkS0HPglOq3hTf1tvhY6KDdaFe3UynbxsvHTzDTm",
:api_token => "87bdbcb0-fb92-012e-a61c-109addaa2672",