Skip to content

Instantly share code, notes, and snippets.

View JeffreyMFarley's full-sized avatar

Jeff Farley JeffreyMFarley

View GitHub Profile

How should we clean up our branches? We have a lot

git branch -r --merged shows the remote branches that have been merged to main

git branch -r --no-merged shows the remote branches that have not been merged to main. These are either abandoned or squash-merged

Then git push origin --delete

Prerequistites

yq

.zshrc

export YQFMT_DEFENV="{\"defaults\": .defaults | sort_by(.key), \"mapping\": .mapping | sort_keys(.), \"services\": .services | sort_keys(.)}"
export YQFMT_ENV="{\"envs\": .envs | sort_by(.key), \"mapping\": .mapping | sort_keys(.), \"services\": .services | sort_keys(.)}"

Terraform

terraform apply
terraform apply -refresh-only
terraform apply -target:module.db

terraform destroy
terraform destroy -target=module.db
import io
INPUT = 'input1.txt'
# ------------------------------------------------------
# Classes
class Panel:
def __init__(self, inputs, outputs):
self.panel = [''] * 10
aqualite ride the rhythm
art of noise close to the edit
astrud gilberto with stan getz the girl from ipanema
atari teenage riot kids are united
atari teenage riot sick to death
atari teenage riot speed
atomic babies purple
autechre second bad vilbel
aux 88 electro/techno
bally sagoo dil cheez

Door Signs

When we moved to Frederick, MD, I noticed that my office had two closet doors directly behind my desk. I thought it would be a fun exercise to come up with "choices" for the doors each week.

The Signs

  1. Us / Them
  2. This / That
  3. My Way / Highway

10.0.0.0/24 (256 hosts)

/25 (128 hosts)

  1. 10.0.0.0
  2. 10.0.0.128

/26 (64 hosts)

  1. 10.0.0.0
  2. 10.0.0.64
  3. 10.0.0.128
From: https://docs.google.com/document/d/1c1S9FqZ-cSvf33gXd_QN9JTFlHMo3yb8zDMMnoyLszw/edit
This is an openly-compiled list of names that anyone (e.g. not just a programmer) should be able to enter into their system and confirm they don’t throw errors (either at input or downstream).
This was inspired by Patrick McKenzie’s Falsehoods Programmers Believe About Names (+ examples of each)
This list is being compiled for a New America project on unemployment benefits but seems widely applicable! Please add names representative of variants you see missing.
## The List
First name “Kathy” but legal name “Kathryn”
Phan Thị Kim Phúc [given name Kim Phúc]
Adam Carolla (no middle name)
Seen? In Order (2019) Name Year
Y N Captain America: The First Avenger 2011
Y N Captain Marvel 2019
Y Y Iron Man 2008
Y N Iron Man 2 2010
N N The Incredible Hulk 2008
Y N Thor 2011
Y Y The Avengers 2012
Y Y Thor: the Dark World 2013