Skip to content

Instantly share code, notes, and snippets.

View srbiv's full-sized avatar

Stafford Brooke srbiv

View GitHub Profile
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
@srbiv
srbiv / _mixes.scss
Created April 28, 2011 22:40
General Compass Mixins
@import "compass";
/////////////////////////////////////////////////////////
//
// Image replacement for elements with hover state
//
// $image - image file that contains default state with
// a hover state directly below it
@stevenharman
stevenharman / fork_db.sh
Last active May 17, 2024 21:20
Fork and promote one Heroku app's Postgres Database to another app.
#!/bin/sh
set -e
app=${1}
staging_app=staging-${app}
db_type=${2:-crane}
old_db=`heroku config -a ${staging_app} | grep ^HEROKU_POSTGRESQL | cut -d : -f 1 | sed s/_URL//`
heroku addons:add heroku-postgresql:${db_type} --fork `heroku config -a ${app} | grep ^DATABASE_URL | cut -d : -f 2-5` -a ${staging_app}
@acolyer
acolyer / service-checklist.md
Last active July 10, 2024 05:13
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?