Skip to content

Instantly share code, notes, and snippets.

Avatar

Knut Ahlers Luzifer

View GitHub Profile
@Luzifer
Luzifer / README.md
Last active Sep 14, 2020
"The Beast Inside" - Solver for the cryptoanalysis book to be found in the new house
View README.md

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 Sep 11, 2020
OpenPGP proof for Keyoxide
View openpgp.md
@Luzifer
Luzifer / which-cloudnode.sh
Last active Jul 18, 2020
Query Hetzner Cloud-Node for your servers
View which-cloudnode.sh
#!/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 Jul 14, 2020
Git credential-helper to supply $GITHUB_TOKEN to github auth
View git-credential-githubenv
#!/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 Jul 13, 2020
A/V Synchro-Test video generator using ffmpeg
View .gitignore
*.mp4
overlay.png
@Luzifer
Luzifer / go.mod
Last active Jun 4, 2020
Example code to read R from #RKI Nowcasting XLSX sheet
View go.mod
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
Delete all repos from certain workspace (username) in Bitbucket
View clean_bb.sh
#!/bin/bash
set -euo pipefail
username=""
apppass=""
workspace="${username}"
function authcurl() {
curl -sSfL -u "${username}:${apppass}" "$@"
}
@Luzifer
Luzifer / generate.sh
Last active Apr 1, 2020
Generate test-videos, black with white number, increases 1/frame
View generate.sh
#!/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 \
@Luzifer
Luzifer / README.md
Last active Mar 4, 2020
Automatic update processing on Archlinux with options for unattended upgrades
@Luzifer
Luzifer / gcr-clean.sh
Created Mar 2, 2020
Cleanup script for untagged revisions in GCR repos
View gcr-clean.sh
#!/bin/bash
set -euo pipefail
COLOR_RED="\033[0;31m"
COLOR_GREEN="\033[0;32m"
COLOR_CYAN="\033[0;36m"
COLOR_YELLOW="\033[0;33m"
COLOR_PLAIN="\033[0m"
function error() {