Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
#!/usr/bin/env ruby | |
# url rewriter for rubygems squid proxy | |
STDOUT.sync = true | |
while line = gets | |
url = line.split(' ')[0] | |
# Cargo-culted this conditional, not sure if it is necessary | |
response = if url |
require 'sinatra' | |
require 'multi_json' | |
class App < Sinatra::Application | |
configure do | |
# Don't log them. We'll do that ourself | |
set :dump_errors, false | |
# Don't capture any errors. Throw them up the stack | |
set :raise_errors, true |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
#! /usr/bin/env bash | |
USERNAME=`cat config/database.yml | grep username | awk {'print$2'}` | |
PASSWORD=`cat config/database.yml | grep password | awk {'print$2'}` | |
HOST=`cat config/database.yml | grep host | awk {'print$2'}` | |
DATABASE=`cat config/database.yml | grep database | awk {'print$2'}` | |
mysql -h $HOST -u $USERNAME -D $DATABASE -p$PASSWORD |