Skip to content

Instantly share code, notes, and snippets.

View tauffredou's full-sized avatar

Thomas Auffredou tauffredou

View GitHub Profile
@tauffredou
tauffredou / trello_headers.js
Created September 23, 2024 08:50
generate trello headers
const colors = ["Crimson", "Cerulean", "Turquoise", "Vermilion", "Indigo", "Lavender", "Periwinkle", "Marigold", "Charcoal", "Magenta",
"Aquamarine", "Amber", "Teal", "Fuchsia", "Saffron", "Emerald", "Coral", "Cobalt", "Sepia", "Olive", "Azure", "Burgundy", "Sage", "Mauve", "Onyx"];
const startDate = new Date(2024, 4, 20); // 20 May 2024
const sprintCount = 10
const firstSprint = 10
const sprintDurationDays = 14
@tauffredou
tauffredou / arch-linux-install.md
Last active June 29, 2022 19:46 — forked from kylemanna/arch-linux-install.md
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
#!/usr/bin/env bash
PASSWORD=secret
openssl genrsa -aes256 -passout pass:$PASSWORD -out ca-key.pem 2048
openssl req -new -x509 -days 365 -key ca-key.pem -sha256 -passin pass:$PASSWORD -subj "/C=FR/O=ACME/CN=docker-ca" -out ca.pem
openssl genrsa -out server-key.pem 2048
openssl req -subj "/CN=$(hostname -i)" -sha256 -new -key server-key.pem -out server.csr
echo subjectAltName = IP:$(hostname -i),IP:127.0.0.1 > extfile.cnf
openssl x509 -req -days 365 -sha256 -in server.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out server-cert.pem -extfile extfile.cnf -passin pass:$PASSWORD
#!/bin/sh
IMAGE=$1
WORKDIR=$(mktemp -d -t docker_diff)
mkdir $WOKRDIR/output
git init $WORKDIR/output
echo "Image $IMAGE"
echo "workdir=$WORKDIR"
for layer in $(docker history -q --no-trunc $1 | tail -r );do
(
@tauffredou
tauffredou / terraform2ansible.js
Last active August 29, 2015 14:14
Convert terraform state file to ansible inventory
#!/usr/bin/env node
if (process.argv.length < 3) {
console.error('Usage: terraform2ansible.js <stateFile> [outputFile]');
process.exit(1);
}
var input = process.argv[2];
var output = null;
if(process.argv.length == 4){