Skip to content

Instantly share code, notes, and snippets.

@mdPlusPlus
mdPlusPlus / 01-nginx-docker.sh
Last active May 15, 2026 20:59
Reload NGINX Docker container after certbot renewal on host
#!/bin/bash
# Path: /etc/letsencrypt/renewal-hooks/deploy/01-nginx-docker.sh
### ##
# Inspired by: https://solariz.de/posts/20/letsencrypt_auto_nginx_reload_on_renew_doing_it_ri/ #
### ##
set -euo pipefail
# set -x # Just for debugging
@mdPlusPlus
mdPlusPlus / plasma_archive.sh
Last active May 17, 2026 23:13
[WIP] Create archive of all non-standard KDE theme files to recreate look and feel on different machine
find /usr/share/plasma/{desktoptheme,look-and-feel,plasmoids} -mindepth 1 -maxdepth 1 -not -name 'org.kde.*' -not -name 'breeze-light' -not -name 'breeze-dark' -exec tar -czf archive.tar.gz {} +
@mdPlusPlus
mdPlusPlus / preinstall.sh
Created May 22, 2026 17:51
MX Linux pre
# 0100-set-apt-mirror.sh
sudo sed -i \
-e 's/^URIs:.*\/repo\//URIs: https:\/\/mxrepo\.com\/mx\/repo\//g' \
-e 's/^URIs:.*\/testrepo\//URIs: https:\/\/mxrepo\.com\/mx\/testrepo\//g' \
'/etc/apt/sources.list.d/mx.sources'
# 0200-https-debian-sources.sh
sudo sed -i 's/URIs: http:/URIs: https:/g' /etc/apt/sources.list.d/debian.sources