Skip to content

Instantly share code, notes, and snippets.

View dvdrhr's full-sized avatar

David dvdrhr

  • University of Oldenburg
  • Germany
View GitHub Profile
@dvdrhr
dvdrhr / domains.txt
Created April 4, 2025 13:06
PiHole Blocklist: LG OLED WebOS Ad & Tracking Germany
eic.recommend.lgtvcommon.com
eic.sports.lgtviot.com
images.pluto.tv
discovery.meethue.com
eic.homeprv.lgtvcommon.com
eic.lgtviot.com
eic-ocp.lgtviot.com
eic-ocp.lgtvio
de.emp.lgsmartplatform.com
de.lgeapi.com
coloros.com
heytapmobi.com
heytapmobile.com
heytapdl.com
allawntech.com
allawnos.com
oppomobile.com
@dvdrhr
dvdrhr / domains.txt
Last active March 6, 2025 21:55
PiHole Whitelist: Synology NAS
# https://kb.synology.com/de-de/DSM/tutorial/What_websites_does_Synology_NAS_connect_to_when_running_services_or_updating_software
####################
### synology.com ###
####################
www.synology.com
account.synology.com
autoupdate7.synology.com
checkip.synology.com
checkipv6.synology.com
# /boot/firmware/config.txt
# disable audio
dtparam=audio=off
# Do not automatically load overlays for detected cameras
camera_auto_detect=0
# Do not automatically load overlays for detected DSI displays
display_auto_detect=0
@dvdrhr
dvdrhr / NTP-to-local-LAN-IP.MD
Last active March 13, 2025 23:52
Route NTP requests to local LAN IP (ASUS Router /w Asuswrt-Merlin)

Create the /jffs/scripts/nat-start file, and paste the following content:

#!/bin/sh

# don't route the local NTP servers (pihole @ 192.168.1.2) own outgoing ntp requests to itself, just accept them 
iptables -t nat -A PREROUTING -p udp -s 192.168.1.2 --dport 123 -j ACCEPT
# route all other ntp requests (port 123) from the local network (192.168.1.0/24) to the local NTP server (pihole @ 192.168.1.2)
iptables -t nat -A PREROUTING -p udp -s 192.168.1.0/24 --dport 123 -j DNAT --to-destination 192.168.1.2:123
@dvdrhr
dvdrhr / gist:5a4c6f478c8b2465bf7f5477cbab6920
Created November 11, 2024 19:03
create bootable USB macOS installer
sudo codesign -s - -f /<INSTALLER_PATH>/<INSTALLER>.app/Contents/Resources/createinstallmedia
>> createinstallmedia: replacing existing signature
sudo /<INSTALLER_PATH>/<INSTALLER>.app/Contents/Resources/createinstallmedia --volume /Volumes/<NAME_OF_YOUR_USB_STICK>
>> follow prompts to create bootable usb stick installer
@dvdrhr
dvdrhr / WORD STUFF & WORKAROUNDS
Last active October 14, 2024 22:14
WORD STUFF & WORKAROUNDS
cross-reff without format transfer: right-click -> toggle field codes -> add "\*CHARFORMAT" to the end -> toggle field code again -> update field
update all fields in document: strg + a -> right click -> update field
strg + a -> F9
#!/bin/sh
#
# Turn off all energy saving mechanisms (green, CPU WAIT, ethernet sleep, etc.) - Make pCPUs and ethernet chips run as fast as possible - no sleeping!
#
/bin/pwr config --cpuwait off
/bin/pwr config --phy off
/bin/pwr config --eee off
/bin/pwr config --apd off
/bin/pwr config --dgm off
/bin/pwr config --avs off
@dvdrhr
dvdrhr / README.md
Last active November 11, 2024 08:53 — forked from francoism90/README.md
Change country to unlock channels, increase TX-power. (Use at your own risk)

EDITS

  • ADDED MANUAL SETTING OF TRANSMISSION POWER & DSF TURN-OFF
  • ADDED DISABLING OF ALL ENERGY SAVING FEATURES

Warning

Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, and should be use with care. We (including commentators) are not responsible for any damage to your device(s).

# turn of fast-forward merging globally for your git installation
git config --global merge.ff false