Skip to content

Instantly share code, notes, and snippets.

View maurerle's full-sized avatar

Florian Maurer maurerle

View GitHub Profile
@maurerle
maurerle / make-debian-cloudinit-template.sh
Last active April 8, 2025 05:37
Script to create a cloud-init debian VM template for Proxmox from a debian cloud image
#!/bin/bash
# makes a cloud-init template vm from URL
# call like ./make-debian-template.sh 9000
# Check for root priviliges
if [[ $EUID -ne 0 ]]; then
printf "Please run as root:\nsudo %s\n" "${0}"
exit 1
fi
@maurerle
maurerle / wg-broker-server.py
Created May 9, 2023 22:40
Server for Wireguard Broker used in Freifunk Context
import glob
import os
import pwd
import re
import subprocess
import unicodedata
from flask import Flask, jsonify, request
@maurerle
maurerle / gluon-flash-fritzbox.sh
Last active July 25, 2023 10:36
Single Script to flash a fritzbox directly - superseded by https://github.com/maurerle/fritz-tools/blob/master/fritzflash.py
#!/bin/sh
# usage: skript.sh eno2 ./gluon-ffac-7520-sysupgrade.img
ip a a 192.168.178.2/24 dev $dev
set -e
image="$2"
dev="$1"
@maurerle
maurerle / make-ff-proxmox-template.sh
Last active July 25, 2023 10:08
Script to create a (Offloader) VM directly from the Freifunk Gluon x86-64 Firmware Download
#!/bin/bash
# makes a template vm from URL
# call like ./make-ff-proxmox-template.sh 9000 http://firmware-server/factory/gluon-v2022.1.2-x86-64.img.gz
ID=$1
URL=$2
FS=lvm
wget $URL -O firmware.img.gz
gzip -df firmware.img.gz
@maurerle
maurerle / docker-install.sh
Last active February 2, 2025 15:20
Docker install Script
#!/bin/bash
set -e
# Check for root priviliges
if [[ $EUID -ne 0 ]]; then
printf "Please run as root:\nsudo %s\n" "${0}"
exit 1
fi
apt-get update
apt-get install ca-certificates curl gnupg lsb-release -y