Skip to content

Instantly share code, notes, and snippets.

@obfuscurity
obfuscurity / README.md
Created Jan 22, 2019 — 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.
View keybase.md

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 Mar 15, 2016
Heroku Ops Reunion
View reunion.md

Heroku Ops Reunion

  • Jason Dixon
  • Mark Imbriaco
  • Michael Gorsuch
  • Ricardo Chimal Jr
  • Michael Hale
  • Curt Micol
  • Doug Mitchell
  • Dylan Egan
View haproxy.cfg and carbon.conf
## haproxy.cfg
global
user haproxy
group haproxy
daemon
maxconn 16384
pidfile /var/run/haproxy.pid
defaults
View whisper-clean.py
import os
import os.path
import sys
from graphite.render.hashing import ConsistentHashRing
instances = []
unwelcome_instances = []
for arg in sys.argv[1:]:
unwelcome = False
View README.md
@obfuscurity
obfuscurity / gist:3707081
Created Sep 12, 2012 — forked from soffes/gist:3428401
Recruiter Reply
View gist:3707081
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 Aug 2, 2012 — forked from pcreux/migrate.rb
Migrate from Heroku Shared DB to Postgres `dev` Plan
View migrate.rb
#!/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 Nov 30, 2011
Migration run for blog post
View gist:1409393
$ 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 Nov 30, 2011
003_BootstrapAccount.rb for blog post
View gist:1409169
# 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",
You can’t perform that action at this time.