Skip to content

Instantly share code, notes, and snippets.

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

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@svnlto
svnlto / Dockerfile
Created Apr 9, 2015
Install Chef and Berkshelf in a Docker Container
View Dockerfile
FROM ubuntu:latest
MAINTAINER Sven Lito "me@svenlito.com"
RUN \
apt-get update && apt-get install -y \
curl \
build-essential \
libxml2-dev \
libxslt-dev \
libqtcore4 \
@selenamarie
selenamarie / carbon_x1_dec_2014.md
Last active Aug 29, 2015
Setting up Carbon X1laptop - Dec 2014
View carbon_x1_dec_2014.md
@grugq
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.
View pypi-release-checklist.md
  • 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
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;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {
@robinsmidsrod
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
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;
View gist:3452111
#!/bin/bash
#
# Install better common utilities
#
# Copyright (c) 2012 Barry Allard <barry.allard@gmail.com>
#
# Also available at: https://gist.github.com/3452111
# UDF template for including in other scripts
# ------- CUT HERE -------
View dell_soap_check.py
#!/usr/bin/python
# Daniel De Marco - ddm@didiemme.net - 2012-02-23
# suds from https://fedorahosted.org/suds/
import suds
import sys
def get_warr(svctag):