Skip to content

Instantly share code, notes, and snippets.

mlafeldt /
Last active May 4, 2021
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)




  • jennifer
  • martym
svnlto / Dockerfile
Created Apr 9, 2015
Install Chef and Berkshelf in a Docker Container
View Dockerfile
FROM ubuntu:latest
apt-get update && apt-get install -y \
curl \
build-essential \
libxml2-dev \
libxslt-dev \
libqtcore4 \
selenamarie /
Last active Aug 29, 2015
Setting up Carbon X1laptop - Dec 2014
grugq / gist:03167bed45e774551155
Last active Jul 10, 2021
operational pgp - draft
View gist:03167bed45e774551155

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

View gist:d1c15f3968f4f8272c49
- What do Etcd, Consul, and Zookeeper do?
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions
numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Centralized locking can be based on this K/V store.
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
alertor / jira-behing-nginx-ssl
Last active Jan 22, 2019
Atlassian JIRA behind nginx + SSL
View jira-behing-nginx-ssl
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
access_log off;
return 301 https://$server_name$request_uri;
# /etc/nginx/conf.d/jira.conf
server {
robinsmidsrod / dhcpd.conf
Last active Feb 23, 2021
Trying to chainload iPXE with full feature set from a lesser featured one, whilst still being able to boot non-supported cards with UNDI
View dhcpd.conf
ddns-update-style none;
deny bootp; #default
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet netmask {
option subnet-mask;
View gist:3452111
# Install better common utilities
# Copyright (c) 2012 Barry Allard <>
# Also available at:
# UDF template for including in other scripts
# ------- CUT HERE -------
# Daniel De Marco - - 2012-02-23
# suds from
import suds
import sys
def get_warr(svctag):