Skip to content

Instantly share code, notes, and snippets.

View supermarsx's full-sized avatar

Mariana supermarsx

  • Δ on earth™
  • 02:41 (UTC +01:00)
View GitHub Profile
@supermarsx
supermarsx / Block-SuspiciousTlds.ps1
Last active August 26, 2025 15:17
Exchange filter, Block Suspicious TLDs
# =========================================================
# 🚨 Block Suspicious TLDs – Transport Rule Manager 🚨
# =========================================================
$blacklist = @(
"@*\.accountant$","@*\.accountants$","@*\.adult$","@*\.am$","@*\.asia$","@*\.autos$",
"@*\.bar$","@*\.bd$","@*\.best$","@*\.bet$","@*\.bid$","@*\.bio$","@*\.blue$","@*\.buzz$",
"@*\.cam$","@*\.casa$","@*\.casino$","@*\.cc$","@*\.cd$","@*\.cf$","@*\.cfd$","@*\.charity$",
"@*\.click$","@*\.club$","@*\.cm$","@*\.cn$","@*\.com.na$","@*\.country$","@*\.cricket$",
"@*\.cyou$","@*\.dad$","@*\.date$","@*\.degree$","@*\.download$","@*\.earth$","@*\.email$",
@supermarsx
supermarsx / docker-health-checks.md
Last active September 10, 2026 10:25
Docker Compose Healthchecks for containers

Docker Compose Healthchecks

Healthchecks let Docker verify that a container is actually ready and responding (not just “running”). This README gives you:

  • A 2‑minute intro to how healthchecks work in Compose
  • Ready‑to‑paste examples for common services (MariaDB, Nextcloud FPM, Nginx, Portainer, Gitea, Registry, Redis, Drone…)
  • Patterns, best practices, and troubleshooting tips
  • How to wire healthchecks into depends_on so stacks start in the right order

@supermarsx
supermarsx / sysctl.conf
Last active August 26, 2025 16:23
Docker sysctl.conf master file
# Docker-tailored sysctl.conf
# ------------------------------------------------------------
# These settings are tuned for Linux hosts running Docker/containers
# (bridge networks, veth pairs, NAT/masquerade, overlay/ingress in Swarm).
# Notes focus on packet bursts from containers, conntrack/NAT behavior,
# asymmetric routing across bridges, and handling spikes from L4/L7 load balancers.
#
# IMPORTANT:
# - These are host-level sysctls. Some can also be applied per-container with
# `docker run --sysctl key=value`, but many only make sense on the host.
@supermarsx
supermarsx / nmcli-rm-docker-bridges.sh
Created December 16, 2024 16:11
Remove all docker bridges with nmcli
nmcli connection show | awk '/^br-/ {print $1}' | xargs -I {} nmcli connection delete {}
@supermarsx
supermarsx / wifiqrcode.txt
Created November 13, 2024 13:28
Wi-Fi QR code generation string
WIFI:S:networkname;T:WPA;P:password;;
@supermarsx
supermarsx / fix0x8004011c.cmd
Created October 22, 2024 17:12
Fix 0x8004011c Outlook with IMAP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb" /v ProtectionPolicy /t REG_DWORD /d 1 /f
@supermarsx
supermarsx / AddDcoAdapter.cmd
Created August 15, 2024 16:29
Add OpenVPN DCO Adapter
cd "C:\Program Files\OpenVPN\bin\"
.\tapctl.exe create --hwid ovpn-dco
@supermarsx
supermarsx / header_checks
Created August 15, 2024 13:41
Postfix Scrub received headers, header_checks
/^Received:.*/ IGNORE
/^x-originating-ip:.*/ IGNORE
@supermarsx
supermarsx / dkimdnsrecordfilter.sh
Created August 15, 2024 13:18
DKIM Key DNS Record Filter
tr -d ' ' < domain.com/selector.txt | tr -d '\n' | tr -d '"' | tr -d '\t' | tr -s "[:blank]" | sed -n 's/.*(\(.*\)).*/\1/p' && echo
@supermarsx
supermarsx / freeusedspace.sh
Created May 24, 2024 10:57
Cheat sheet, free/used space linux by folder/mount points
# free space mount points
df -h /
# used space folders
du -sh *
# used space process locked files
lsof +L1
# used space by files in folder
ls -lah