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
  • 05:47 (UTC +02:00)
View GitHub Profile
@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 / docker-container-save.md
Last active May 2, 2026 20:47
How to save docker containers and the associated volumes

Works for docker compose files

First, stop all containers with

docker stop $(docker ps -a -q)

Save files

tar -cf docker.tar /var/lib/docker/volumes /opt/docker-containers/ # Or where the docker containers are
@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 / named-dns-adblocker.sh
Created June 11, 2026 15:48
Named DNS Adblocker
#!/bin/bash
# Crontab
# $ crontab -e
# Update named adblock every day at 4am
# 0 4 * * * /opt/named-adblock/update.sh
# Named
# Write this into your named.conf file
# include "/etc/bind/named.conf.adblock";