Skip to content

Instantly share code, notes, and snippets.

View Luzifer's full-sized avatar

Knut Ahlers Luzifer

View GitHub Profile
@Luzifer
Luzifer / macro.html
Last active August 8, 2024 10:01
Confluence Datacenter user-macro to embed an iFrame including some extra features
## @param Height:title=Height|type=int|required=false|default=500|desc=Height of the embed
## @param Src:title=Source|type=string|required=true|desc=URL to embed
## @param AutoResize:title=Auto-Resize|type=boolean|required=false|default=false|desc=Enable Script to Auto-Resize frame
<iframe
id="confluenceFrame"
frameborder="0"
height="$paramHeight"
referrerpolicy="same-origin"
src="$paramSrc"
@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}" "$@"
}