Skip to content

Instantly share code, notes, and snippets.

View anoldguy's full-sized avatar

Nathan Anderson anoldguy

View GitHub Profile

Pumpkin Brown Butter Whiskey Cake

Makes one 8-inch round cake

Ingredients:

For the cake:

  • ½ cup (113 grams or 1 stick) unsalted butter
  • 1 cup (140 grams) all-purpose flour
» time bash -c "kubectl -v9 get pods 2>&1 | grep ServerProcessing"
I0331 13:49:30.847942 21872 round_trippers.go:570] HTTP Statistics: DNSLookup 1 ms Dial 38 ms TLSHandshake 44 ms ServerProcessing 56 ms Duration 422 ms
I0331 13:49:30.930520 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 39 ms Duration 39 ms
I0331 13:49:31.014527 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 44 ms Duration 44 ms
I0331 13:49:31.014528 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 44 ms Duration 44 ms
I0331 13:49:31.016835 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 46 ms Duration 46 ms
I0331 13:49:31.016873 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 46 ms Duration 46 ms
I0331 13:49:31.016907 21872 round_trippers.go:570] HTTP Statistics: GetConnection 0 ms ServerProcessing 44 ms Duration 45 ms
I0331 13:49:31.016912 21872 round_tripp
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF

Shamelessly stolen from the Last Week in AWS extras email on 2020-08-12.

Your Disaster Recovery Plan is a Joke Written by Clowns

If you take a look somewhere in an engineering VP or Director's office, you'll find a binder that hasn't been touched in a while labeled "DR / BCM Plan."

Disaster Recovery / Business Continuity Management planning are important things to take into consideration. But the clowns you work for have almost certainly screwed it up well into the realm of absurdity.

Why these plans exist

EDAC - Error Detection And Correction
Written by Doug Thompson <dougthompson@xmission.com>
7 Dec 2005
17 Jul 2007 Updated
(c) Mauro Carvalho Chehab <mchehab@redhat.com>
05 Aug 2009 Nehalem interface
AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW AX AY AZ Aa Ab Ac Ad Ae Af Ag Ah Ai Aj Ak Al Am An Ao Ap Aq Ar As At Au Av Aw Ax Ay Az A0
A1 A2 A3 A4 A5 A6 A7 A8 A9 BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ Ba Bb Bc Bd Be Bf Bg Bh Bi Bj Bk Bl Bm Bn Bo Bp Bq Br
Bs Bt Bu Bv Bw Bx By Bz B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 CA CB CC CD CE CF CG CH CI CJ CK CL CM CN CO CP CQ CR CS CT CU CV CW CX CY CZ Ca Cb Cc Cd Ce Cf Cg Ch Ci
Cj Ck Cl Cm Cn Co Cp Cq Cr Cs Ct Cu Cv Cw Cx Cy Cz C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 DA DB DC DD DE DF DG DH DI DJ DK DL DM DN DO DP DQ DR DS DT DU DV DW DX DY DZ
Da Db Dc Dd De Df Dg Dh Di Dj Dk Dl Dm Dn Do Dp Dq Dr Ds Dt Du Dv Dw Dx Dy Dz D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 EA EB EC ED EE EF EG EH EI EJ EK EL EM EN EO EP EQ
ER ES ET EU EV EW EX EY EZ Ea Eb Ec Ed Ee Ef Eg Eh Ei Ej Ek El Em En Eo Ep Eq Er Es Et Eu Ev Ew Ex Ey Ez E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 FA FB FC FD FE FF FG FH
FI FJ FK FL FM FN FO FP FQ FR FS FT FU FV FW FX FY FZ Fa Fb Fc Fd Fe F

Git is hard

Screwing up is easy, and figuring out how to fix your mistakes is sometimes impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.

# Resize FS
resize2fs /dev/sdb
# Only if needed:
# Stop ES
service bitnami stop
ps -efa|grep elasticsearch
#!/bin/bash
# ==============================================================
# How to make an ISO from the "Install $OS_NAME.app"
# ==============================================================
OS_NAME="${1:-macOS Sierra}"
SHORT_NAME="${2:-macOS}"
INSTALLER_PATH="/Applications/Install $OS_NAME.app"
IMAGE_PATH="/tmp/$SHORT_NAME"

Chili

Ingredients

  • 4 lbs. well-trimmed round steak
  • 6 large garlic cloves
  • 4 lbs. coarsely ground hamburger meat
  • 2 yellow onions, coarsely chopped
  • 7 Tbsp. chili powder
  • 3 Tbsp. ground cumin
  • 6 tsp. salt