Skip to content

Instantly share code, notes, and snippets.

@mjbnz
mjbnz / README.md
Created March 17, 2023 03:14
Disk image writing initrd for iPXE netbooting

Disk-Write initrd creation script

Inspired by this post on ipxe.org, the following script downloads and extracts the current Debian Bullseye netboot installer kernel and initrd, and prepares them for usage as a rudimentary disk image writing utility. It is intended to be used for KVM virtio guests on Proxmox VE, to install Mikrotik RouterOS via network boot.

Appropriate iPXE commands to use the resulting kernel and initrd would be something like the following:

@mjbnz
mjbnz / ipsets.py
Created September 3, 2020 05:13
Unifi Security Gateway iptables and ipsets helper scripts
#!/usr/bin/env python
import sys
import subprocess
import json
def range_string(start, end):
if start != end:
return '%s-%s' % (start, end)
else:
@mjbnz
mjbnz / nginx-rproxy-with-sso.md
Last active November 3, 2024 22:45
Nginx Reverse Proxy with simple SSO

Nginx Reverse Proxy for homelab services using SSO

NOTE: This document has now been added to the nginx-sso wiki, here. Any further updates will be made there.

Using:
@mjbnz
mjbnz / ipsets.py
Created February 2, 2019 07:11
pretty print ip sets
#!/usr/bin/env python
import sys
import subprocess
import json
def range_string(start, end):
if start != end:
return '%s-%s' % (start, end)
else:
@mjbnz
mjbnz / mjbnz_keybase_proof
Created January 22, 2015 01:46
mjbnz_keybase_proof
### Keybase proof
I hereby claim:
* I am mjbnz on github.
* I am mjbnz (https://keybase.io/mjbnz) on keybase.
* I have a public key whose fingerprint is 9091 CDDB 68CC 3400 6335 F054 3B62 1291 5022 936C
To claim this, I am signing this object: