Skip to content

Instantly share code, notes, and snippets.

View jamesmaidment's full-sized avatar
🚢
shippin'

James Maidment jamesmaidment

🚢
shippin'
View GitHub Profile
@jamesmaidment
jamesmaidment / service-checklist.md
Created November 28, 2018 21:53 — forked from acolyer/service-checklist.md
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?
@jamesmaidment
jamesmaidment / gist:da65d1dbde1913a465297a6f93721a61
Last active October 11, 2017 20:07
HAProxy 1.7 statistics
The types are L (Listeners), F (Frontends), B (Backends), and
S (Servers).
0. pxname [LFBS]: proxy name
1. svname [LFBS]: service name (FRONTEND for frontend, BACKEND for backend,
any name for server/listener)
2. qcur [..BS]: current queued requests. For the backend this reports the
number queued without a server assigned.
3. qmax [..BS]: max value of qcur
4. scur [LFBS]: current sessions
TsvHttpData-1.0
https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2016-11-29/2016-11-25-raspbian-jessie-lite.zip 307495992 bcc5426f643061b642be3811c0ef2ee2
@jamesmaidment
jamesmaidment / tmux.conf
Created November 25, 2016 18:14 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@jamesmaidment
jamesmaidment / keybase.md
Last active March 14, 2018 17:27
Keybase proof

Keybase proof

I hereby claim:

  • I am jamesmaidment on github.
  • I am jamesmaidment (https://keybase.io/jamesmaidment) on keybase.
  • I have a public key whose fingerprint is 33EC FDE7 7FED B3A5 B4FA EF87 E972 B314 4649 8E86

To claim this, I am signing this object:

@jamesmaidment
jamesmaidment / vagrant.py
Created March 28, 2016 22:49 — forked from lorin/vagrant.py
Vagrant dynamic inventory script for Ansible
#!/usr/bin/env python
# Adapted from Mark Mandel's implementation
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py
import argparse
import json
import paramiko
import subprocess
import sys
@jamesmaidment
jamesmaidment / gist:fa228aa724811023324a
Created March 12, 2015 14:14
Get largest 40 directories
sudo du -x / | sort -n | tail -40
@jamesmaidment
jamesmaidment / gist:078ab9eb0cedc0845216
Created February 24, 2015 20:49
Delete orphan Docker images
docker rmi `docker images | awk '{ print $3; }'`