Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 / Anbernic.md
Last active February 17, 2026 23:09
Anerbernic devices
Reg. Price Display size Resolution CPU GPU RAM Battery WiFi BT
RG28XX $47.99 2.83“ 640x480 H700 4x A53 1.5GHz Mali-G31 MP2 2x 1GB LPDDR4 3100 mAh
RG300X $79.99 3.0“ 640x480 4770 2x 1.0 GHz 512MB DDR2 2500 mAh
RG Nano $65.99 1.54“ 240x240 A7 1.2GHz 64MB DDR2 1050 mAh
RG35XX $49.99 3.5“ 640x480 H700 4x A53 1.5GHz Mali-G31 MP2 2x 1GB LPDDR4
@mdPlusPlus
mdPlusPlus / config.yml
Last active February 10, 2026 15:23
Fixed emulatorjs config (switched X/Y) for German keyboards (Z=Y)
emulatorjs:
# settings:
# default:
# fps: show
controls:
# default: # 'default' keyword doesn't work here for some reason, every emulator has to be configured separately
gambatte: # default for Game Boy + Game Boy Color
# A MAPPING FOR EACH BUTTON MUST BE SET!
# value = Mapping for keyboard
# value2 = Mapping for connected controller
@mdPlusPlus
mdPlusPlus / modping.sh
Last active July 14, 2023 21:45
Modping for Session communities
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# check for argument
set +u
if [ -z "${1}" ]
then
echo "Usage: modping.sh %community_link%"
@mdPlusPlus
mdPlusPlus / run_session.sh
Last active July 12, 2023 00:04
Bash script template to use several different Session IDs in parallel
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
SESSION_PATH='~/Downloads/'
SESSION_APPIMAGE='session-desktop-linux-x86_64-1.10.8.AppImage'
IDENTITIES_PATH='~/Downloads/_Session_identities/'
IDENTITY='per'
LOCKFILE='/tmp/session_per'
@mdPlusPlus
mdPlusPlus / modals.html
Created January 8, 2023 22:07
Multiple modal example, HTML/CSS/JavaScript
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
@mdPlusPlus
mdPlusPlus / Dockerfile
Created August 19, 2022 15:32
Dockerfile for monerod (https://www.getmonero.org/)
FROM ubuntu:focal
LABEL "author"="mdPlusPlus"
LABEL "name"="monerod"
LABEL "description"="Dockerfile for monerod (https://www.getmonero.org/)"
EXPOSE 18081/tcp
VOLUME ["/root/.bitmonero"]