Skip to content

Instantly share code, notes, and snippets.

View seraphyn's full-sized avatar
🏠
Working from home and loving' it

Christian M. Grube seraphyn

🏠
Working from home and loving' it
View GitHub Profile

[guide] keycloak authentication for proxmox

How to setup Proxmox to use Keycloak as authentication realm.

Proxmox Setup

root@proxmox:/etc/pve# cat domains.cfg
pam: pam
        comment Linux PAM standard authentication
@seraphyn
seraphyn / ugreen_truenas_led.md
Created November 12, 2024 08:56 — forked from Kerryliu/ugreen_truenas_led.md
TrueNAS UGREEN DXP4800 Plus Status LED Guide

UGREEN DXP4800 Plus TrueNAS Status LED Guide

20240609_035951642_iOS

The following is a quick guide on getting basic status LED functionality working with TrueNAS running on the UGREEN DXP4800 Plus. Theoretically, it should work on all models (with some small revisions to the script), but I only have a DXP4800 Plus. :)

This guide is for cron job that runs a script to update the LEDs every couple minutes, but I'm sure the following can be modified for blinky LEDs as well.

Steps:

@seraphyn
seraphyn / dhcpd_2_kea_cvs.sh
Created June 28, 2025 11:34
ISC DHCP to Kea CSV Import opnSense
#!/bin/bash
# DHCP Lease Extractor Script
# Extrahiert statische Leases aus dhcpd.conf und schreibt sie in eine CSV-Datei
# Standardpfade
DHCPD_CONF="/etc/dhcp/dhcpd.conf"
OUTPUT_CSV="dhcp_leases.csv"
# Funktion zur Anzeige der Hilfe
@seraphyn
seraphyn / docker_giteabackupscript.sh
Created July 15, 2025 08:39
Backup gitea in docker to /var/backups/GiteaBackup. docker container called gitea_prod
#!/bin/bash
echo "Creating gitea backup inside docker containter ..."
docker exec -u git -it -w /tmp $(docker ps -qf "name=gitea_prod") bash -c '/app/gitea/gitea dump -c /data/gitea/conf/app.ini --file /tmp/gitea-dump.zip'
echo "Copying backup file from the container to the host machine ..."
docker cp $(docker ps -qf "name=gitea_prod"):/tmp/gitea-dump.zip /var/backups/GiteaBackup/
echo "Removing backup file in container ..."
docker exec -u git -it -w /tmp $(docker ps -qf "name=gitea_prod") bash -c 'rm /tmp/gitea-dump.zip'
@seraphyn
seraphyn / instructions.md
Created February 26, 2026 10:58 — forked from oprypin/instructions.md
systemd user unit + timer example

Save these files as ~/.config/systemd/user/some-service-name.*

Run this now and after any modifications: systemctl --user daemon-reload

Try out the service (oneshot): systemctl --user start some-service-name

Check logs if something is wrong: journalctl -u --user-unit some-service-name

Start the timer after this user logs in: systemctl --user enable --now some-service-name.timer