- cryptsetup
# initialize and set passphrase
cryptsetup -y -v luksFormat /dev/$DEVICE
I hereby claim:
To claim this, I am signing this object:
# Use envFrom to load Secrets and ConfigMaps into environment variables | |
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: mans-not-hot | |
labels: | |
app: mans-not-hot | |
spec: | |
replicas: 1 |
If set, automatically syncs a Vault KV v2 secret into a Kubernetes Secret. Each key in the Vault secret is mapped to the same key in the Kubernetes Secret.
< Vault KV v2 path >:< Kubernetes Secret name >
/kv/example-app/environ:example-app-env-secret
If set, automatically syncs a Consul KV entry/directory into a Kubernetes ConfigMap. Each key in the Consul directory is mapped to the same key in the Kubernetes ConfigMap.
A collection of various articles and resources that I've encountered during my career as a software engineer. They are in my opinion high quality, and to be considered for this list I usually have to remember the time and place at which I discovered the article.
#!/usr/bin/env bash | |
set -o errexit -o pipefail -x | |
GIT_ROOT="$(git rev-parse --show-toplevel)" | |
CLUSTER_NAME=example-test | |
export KUBECONFIG="${GIT_ROOT}/test/test-kubeconfig.yaml" | |
# usage: portfwd [namespace] [port] | |
# assumes service exists with same name as namespace | |
portfwd() { |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
#!/usr/bin/env bash | |
# Decrypts Audible aax/mp4 to m4b | |
# USAGE: audible-convert FILE | |
set -o errexit -o pipefail -o nounset | |
# To get this: https://audible-converter.ml/ | |
ab="${AUDIBLE_BYTES}" | |
input="$1" | |
output="${input%.*}.m4b" |
#!/usr/bin/env python | |
import argparse | |
import json | |
import re | |
import sys | |
import urllib.request | |
def fetch_ips(): |