Skip to content

Instantly share code, notes, and snippets.

@maxried
maxried / README.md
Created January 17, 2020 14:46
Wireguard in initrd

These scripts allow you to have a wireguard connection in your initrd. Make sure you have wireguard installed on your system and a busybox which supports ip, nslookup. If it does not work, change the copy_exec line for busybox in the hook and replace it with a better one. It reads /etc/wireguard/initramdisk.conf and expects at least one comment specifying all ip addresses like so: # Address = 1.2.3.4/12. Tested on Ubuntu 19.10.

#!/usr/bin/env bash
oid=""
community=""
host=""
label=""
unit=""
while getopts "C:H:o:l:u:" o; do
case "${o}" in
@maxried
maxried / decode_post_datamtrix.py
Last active August 27, 2019 07:55 — forked from 5263/decode_post_datamtrix.py
Doppeltes case label
#!/usr/bin/env python
import sys
import datetime
frankierart={
0x01:'Stampit 2003',
0x02:'0x02???',
0x03:'Frankit',
0x05:'Filiale',
0x07:'Frankierservice Infopost/Infobrief',
0x08:'Premiumadress',