- Understand and check Service Quota of ECS/Fargate and other related services
- Cluster
- CDK for ECS: blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
- Does the design expect failures to happen regularly and handle them gracefully?
- Have we kept things as simple as possible?
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |