Skip to content

Instantly share code, notes, and snippets.

View Luzifer's full-sized avatar

Knut Ahlers Luzifer

View GitHub Profile
@Luzifer
Luzifer / manage-volume
Last active December 5, 2023 15:11
Setup for LUKS encrypted disk using Vault transit encryption for the key and local auth-expiry
#!/usr/bin/env bash
set -euo pipefail
function fatal() {
log "$@"
exit 1
}
function log() {
echo "$@" >&2
@Luzifer
Luzifer / .gitignore
Last active March 14, 2023 17:22
Remove old outdated repositories from DockerHub account
.env
@Luzifer
Luzifer / README.md
Last active September 14, 2020 19:17
"The Beast Inside" - Solver for the cryptoanalysis book to be found in the new house

This is a quite simple try to solve the puzzle from the cryptoanalysis book from the "The Beast Inside" game.

# python solve.py
N	R	DKKLAJ	HOOPEN
A	Z	TUFSMJOH	STERLING
W	Z	HGXBO	KJAER
K	Y	ZQDUVMZM	NERIJANA
O	S	GQPHAOW	KUTLESA
L	P	NQPDE	RUTHI
@Luzifer
Luzifer / openpgp.md
Last active September 11, 2020 22:00
OpenPGP proof for Keyoxide
@Luzifer
Luzifer / which-cloudnode.sh
Last active July 18, 2020 19:40
Query Hetzner Cloud-Node for your servers
#!/bin/bash
set -euo pipefail
###
# Query Hetzner Cloud-Node for your servers
#
# Wanna know whether a specific outage affects one of your cloud nodes?
# Make a list of nodes before the outage happens and you'll know whether
# your server is hosted on the node with the outage...
#
@Luzifer
Luzifer / git-credential-githubenv
Last active July 14, 2020 16:00
Git credential-helper to supply $GITHUB_TOKEN to github auth
#!/bin/bash
set -euo pipefail
###
# How to use?
#
# - Download into path with name `git-credential-githubenv`
# - Enable helper `git config --global credential.helper 'githubenv'`
# - Expose corresponding token as `GITHUB_TOKEN` env variable
#
@Luzifer
Luzifer / .gitignore
Last active July 13, 2020 13:14
A/V Synchro-Test video generator using ffmpeg
*.mp4
overlay.png
@Luzifer
Luzifer / go.mod
Last active June 4, 2020 19:38
Example code to read R from #RKI Nowcasting XLSX sheet
module github.com/Luzifer/rkiR
go 1.14
require (
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.6.0
github.com/tealeg/xlsx v1.0.5
)
@Luzifer
Luzifer / clean_bb.sh
Created May 1, 2020 13:29
Delete all repos from certain workspace (username) in Bitbucket
#!/bin/bash
set -euo pipefail
username=""
apppass=""
workspace="${username}"
function authcurl() {
curl -sSfL -u "${username}:${apppass}" "$@"
}
@Luzifer
Luzifer / generate.sh
Last active April 1, 2020 15:43
Generate test-videos, black with white number, increases 1/frame
#!/bin/bash
set -euxo pipefail
FPS=(25 30)
CODEC=(libx264 nvenc_h264)
rm -f out*.mp4
for n in $(seq -f '%03.0f' 0 999); do
[ -f "${n}.png" ] || convert \