Skip to content

Instantly share code, notes, and snippets.

View paul-chambers's full-sized avatar
💭
Open to new opportunities

Paul Chambers paul-chambers

💭
Open to new opportunities
View GitHub Profile
@paul-chambers
paul-chambers / README.md
Last active August 7, 2023 12:29
My Control-D & dnsmasq config

These two config files work together to integrate Control-D for public DNS queries and dnsmasq for intranet ones (including those assigned by DHCP).

When these chages are made, the ctrld daemon is 'in front' and receives all queries first on listener.0, irrespective of origin. Listener.0 then diverts any that are for *.local or my intranet to the dnsmasq instance, which has been moved to port 531, to avoid conflicts. If dnsmasq doesn't resolve the request itself internally (i.e. dhcp allocations, /etc/hosts, static dhcp-host configs, etc.), it 'forwards' it back to ctrld on port 532, where listener.1 sends it upstream unconditionally (i.e. listener.1 has no rules to redirect intranet requests to dnsmasq, like there

@paul-chambers
paul-chambers / iptv-org-setup.sh
Last active September 4, 2023 01:08
iptv-org sparse checkout
#!/bin/bash
set -x
git clone --no-checkout --depth 1 https://github.com/iptv-org/iptv.git && cd iptv
git config core.sparsecheckout true
cd iptv/streams && git sparse-checkout set us*.m3u ca*.m3u uk*.m3u
@paul-chambers
paul-chambers / autobrr.service
Last active February 2, 2024 06:52
install autobrr
[Unit]
Description=autobrr service
After=syslog.target network-online.target
[Service]
Type=simple
User=autobrr
Group=media
UMask=002
ExecStart=/var/lib/autobrr/bin/autobrr --config=/var/lib/autobrr