Skip to content

Instantly share code, notes, and snippets.

View Razuuu's full-sized avatar
🏠
Working from home

Joshua Samenfink Razuuu

🏠
Working from home
  • Germany
  • 07:26 (UTC +02:00)
View GitHub Profile
@Razuuu
Razuuu / custom.conf
Created March 20, 2026 20:39
SSH Custom
# Only allow user <user>
AllowUsers <user>
# Auth global
PasswordAuthentication no
PubkeyAuthentication yes
PermitRootLogin no
# Localnets access
Match Address 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,127.0.0.1/32
@Razuuu
Razuuu / docker-container-save.md
Last active March 20, 2026 20:43
How to save docker containers and the associated volumes

Works for docker compose files

Save files

tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers are

Move them to the new server via scp and run these commands.

@Razuuu
Razuuu / adguard-allowlist.txt
Last active March 16, 2026 15:42
Adguard Allowlist
!
! Title: Adguard Allowlist
!
# [discord.com]
127.0.0.1 click.discord.com
# [ojrq.net]
127.0.0.1 www.ojrq.net
@Razuuu
Razuuu / windows-adguard-blocklist.txt
Created March 15, 2026 00:53
Windows Adguard Blocklist
!
! Title: Windows Blocklist
!
# [microsoft.com]
127.0.0.1 licensing.mp.microsoft.com
# [windows.com]
127.0.0.1 client.wns.windows.com
@Razuuu
Razuuu / adguard-battleye-blocklist.txt
Last active March 15, 2026 00:51
Adguard Battleye blocklist
!
! Title: Battleye Blocklist
!
# [battleye.com]
127.0.0.1 paradise-s1.battleye.com
127.0.0.1 test-s1.battleye.com
127.0.0.1 paradiseenhanced-s1.battleye.com
@Razuuu
Razuuu / ddclient.conf
Created March 9, 2026 21:19
dynv6-ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
protocol=dyndns2
use=web, web=ip4only.me
server=dynv6.com
ssl=yes
login=none
password='password'
@Razuuu
Razuuu / minecraft-systemd-service.md
Last active January 4, 2026 18:25
Dynamic systemd Minecraft server template with customizable java home, server jar and memory per instance.

This setup provides a multi-instance Minecraft server using systemd templates.

  1. Add user
adduser --disabled-password --gecos "" minecraft
  1. Create files

/usr/lib/systemd/system/minecraft@.service

@Razuuu
Razuuu / tar-max-compression.sh
Created November 19, 2025 18:01
tar max compression
tar cvf - /path/to/file | gzip -9 - > filename.tar.gz
@Razuuu
Razuuu / config.txt
Created November 9, 2025 17:49
Turn off LEDs on the Raspberry Pi 4B (Paste this at the end of the file)
> /boot/firmware/config.txt
# Disable the PWR LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=on
# Disable the Activity LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
@Razuuu
Razuuu / tar-progress-oneliner.sh
Created October 27, 2025 17:47
tar oneliner with progress bar
SELFOLDER="/foldername/" tar cf - ${SELFOLDER} -P | pv -s $(du -sb ${SELFOLDER} | awk '{print $1}') | gzip > ${SELFOLDER}.tar.gz