Skip to content

Instantly share code, notes, and snippets.

@4rft5
4rft5 / WireguardClientPortRestrict
Created October 29, 2025 14:29
How to restrict a Wireguard Client access to a single port (WG-Easy)
1. Make a shell script in the same path as compose with the following:
#!/bin/sh
iptables -A FORWARD -i wg0 -s CLIENTIPHERE -p tcp -d SERVICEIPHERE --dport SERVICEPORTHERE -j ACCEPT
iptables -A FORWARD -i wg0 -s CLIENTIPHERE -j DROP
exec /usr/bin/dumb-init node server/index.mjs
2. Change CLIENTIPHERE, SERVICEIPHERE and SERVICEPORTHERE to match your setup
3. chmod +x the shell script
@4rft5
4rft5 / gist:1cae4df79f375a6ef3ac73e81d8b34bf
Created June 16, 2025 17:40
HP Telemetry Blocklist for Pi-hole
0.0.0.0 api.hpsmart.com
0.0.0.0 cec.hpsmart.com
0.0.0.0 cec.hpsmart.com.cdn.cloudflare.net
0.0.0.0 d2mh2hpmbwgn3r.cloudfront.net
0.0.0.0 hpcorp-prod-volga.apigee.net
0.0.0.0 hpcorp-prod-volga.dn.apigee.net
0.0.0.0 hpsmart.com.cdn.cloudflare.net
0.0.0.0 mq.dataservices.hp.com
0.0.0.0 mq.hp-dataservices.com
0.0.0.0 oss.hpconnected.com
@4rft5
4rft5 / discord-cleaner.css
Last active October 26, 2025 16:46 — forked from Katzenwerfer/discord-cleaner.css
"Enhanced" cleaner that removes more (chat buttons, friends button, explore button, etc)
/* ----------------------------- */
/* Hides super reaction elements */
/* ----------------------------- */
[class*=reaction_]:has([aria-label*="super reaction"]),
[class*=burstToggle_] {
display: none;
}
/* ------------------------- */