Skip to content

Instantly share code, notes, and snippets.

@henk23
henk23 / Caddyfile
Last active December 3, 2025 15:37
Caddy with json logs and fail2ban
# /etc/caddy/Caddyfile
{
log {
output file /var/log/caddy/caddy.log
format json
}
}
(logging) {
@NorkzYT
NorkzYT / README.md
Last active December 4, 2025 07:48
Proxmox CIFS Share Mount Wizard Script

Proxmox LXC ⇆ CIFS Mount Wizard

proxmox-lxc-cifs-share.sh is an interactive helper that mounts a network CIFS/SMB share on a Proxmox VE node and bind-mounts it into one or more unprivileged LXC containers in one pass.
It automates:

  1. Creating a host-side mountpoint under /mnt/lxc_shares/<folder>.
  2. Writing a properly-tuned /etc/fstab entry (systemd.automount, uid/gid mapping, etc.).
  3. Mounting the share immediately.
  4. Injecting the bind-mount (mpX:) into the live LXC configuration with pct set.
  5. Stopping and restarting each container to apply the mount.
@bgrenet
bgrenet / xopp2pdf.py
Created November 9, 2023 20:35
Export xournal++ file to pdf, preserving bookmarks, pdf links, etc.
#!/usr/bin/env python3
import gzip
import xml.etree.ElementTree as ET
import subprocess
import argparse
import sys
import pathlib
import tempfile
@andrewfraley
andrewfraley / pbs_on_rpi.md
Last active November 29, 2025 23:49
Backup a Raspberry Pi to Proxmox Backup Server using the Proxmox Backup Client

Backup a Raspberry Pi to Proxmox Backup Server using the Proxmox Backup Client

This works on a Pi 4, and should work on a Pi 3, but to work on a Pi Zero you would have to figure out how to compile your own client. More info in this thread on the Proxmox forums.

Determine if your Pi is 32bit or 64bit

Run the following command. If you get arm64, it's 64bit, otherwise you'll see armv7l which is 32bit.

uname -m
@fragande
fragande / burnttoast_sonarr.ps1
Last active February 22, 2024 03:39
Simple PowerShell script for BurntToast Sonarr notifications
Import-Module BurntToast
$eventtype = $env:sonarr_eventtype
$series_title = $env:sonarr_series_title
$rel_episodenumber = $env:sonarr_release_episodenumbers
$rel_seasonnumber = $env:sonarr_release_seasonnumber
$epfile_episodenumber = $env:sonarr_episodefile_episodenumbers
$epfile_seasonnumber = $env:sonarr_episodefile_seasonnumber
$releasename = $env:sonarr_episodefile_scenename
$releasetitle = $env:sonarr_release_title
$isupgrade = $env:sonarr_isupgrade
@mrpeardotnet
mrpeardotnet / PVE-host-backup.md
Created December 17, 2019 18:03
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup