mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-18 23:54:21 +01:00
Two levels of pure taxonomy carrying no information, and a 2-directory
cap leaves no room for them. Categories now sit directly under
linux_configuration/: features, fixes, utils, misc, fresh-install,
installers, diagnostics, gaming, boot_recovery, periodic_background, lib,
meta, tests. A script's own lib/ and tests/ are exempt from the cap, so
those stay put.
Depth violations 248 -> 139; roughly 40 of the remainder are inside
digital_wellbeing and hosts, deferred until the guard-lib repoint.
The moves are the easy half. What breaks is every path that counted
levels, and three classes of it had to be found by resolving paths rather
than reading diffs:
- 52 relative `source` lines for lib/common.sh and lib/android.sh. The
correct prefix differs per file: 40 were ../../ and 12 were ../../../,
so a blanket replace would have fixed one set and broken the other.
- REPO_ROOT in 7 fixes/lib/tests harnesses and setup_syncyomi_guard.sh,
each walking up four levels from a directory now two levels shallower.
This caused a real regression -- the fixes suite went red with
"log_warn: command not found" -- caught by running it and comparing
against the pre-move baseline worktree.
- conftest.py's sys.path entries, which took the pytest gate down with
14 collection errors, and the `# shellcheck source=` directives, which
took shellcheck down with SC1091.
16 symlinks in $HOME broke, including the entire i3blocks bar. All
repointed, and cpu_monitor/memory/disk/time/volume were run to confirm
they emit real output rather than merely resolving.
Verified: 1798 tests pass at 100% coverage, 8 of 9 lib/tests suites pass
(the ninth needs the coverage jail, identically at baseline), pre-commit
is clean, and the two untracked secret configs are still ignored after
their gitignore paths changed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
330 lines
7.8 KiB
Plaintext
330 lines
7.8 KiB
Plaintext
# Custom blocking entries appended to /etc/hosts by lib/hosts_write.sh.
|
|
#
|
|
# Kept as data rather than as a heredoc inside the script: at ~320 lines it was
|
|
# most of that file and pushed it over the repo-wide 250-line cap, and a plain
|
|
# hosts-format file is also easier to diff and to audit than a quoted heredoc.
|
|
# The content is byte-identical to the heredoc it replaces.
|
|
#
|
|
# Format is standard /etc/hosts: "0.0.0.0 domain" to block, "#" to comment.
|
|
# check_custom_entries_protection reads this same file to detect entries being
|
|
# removed, so edits here are what the anti-tamper guard is watching.
|
|
|
|
# Custom blocking entries
|
|
# YouTube
|
|
0.0.0.0 youtube.com
|
|
0.0.0.0 www.youtube.com
|
|
0.0.0.0 m.youtube.com
|
|
0.0.0.0 youtu.be
|
|
0.0.0.0 youtube-nocookie.com
|
|
0.0.0.0 www.youtube-nocookie.com
|
|
0.0.0.0 youtubei.googleapis.com
|
|
0.0.0.0 youtube.googleapis.com
|
|
0.0.0.0 yt3.ggpht.com
|
|
# Channel avatars and banners. Same role as yt3.ggpht.com, which was already
|
|
# here -- Google serves them from both hosts, so blocking one leaves the other
|
|
# resolving. Caught when the phone's DoT resolver was checked domain by domain
|
|
# against the 14 the focus policy names.
|
|
0.0.0.0 yt3.googleusercontent.com
|
|
0.0.0.0 ytimg.com
|
|
0.0.0.0 i.ytimg.com
|
|
0.0.0.0 s.ytimg.com
|
|
0.0.0.0 i9.ytimg.com
|
|
0.0.0.0 googlevideo.com
|
|
0.0.0.0 r1---sn-4g5e6nls.googlevideo.com
|
|
0.0.0.0 r1---sn-4g5lne7s.googlevideo.com
|
|
|
|
# Alternative YouTube Frontends (Invidious, Piped, etc.)
|
|
0.0.0.0 invidious.io
|
|
0.0.0.0 www.invidious.io
|
|
0.0.0.0 invidio.us
|
|
0.0.0.0 vid.puffyan.us
|
|
0.0.0.0 invidious.snopyta.org
|
|
0.0.0.0 yewtu.be
|
|
0.0.0.0 invidious.kavin.rocks
|
|
0.0.0.0 inv.riverside.rocks
|
|
0.0.0.0 invidious.namazso.eu
|
|
0.0.0.0 invidious.nerdvpn.de
|
|
0.0.0.0 invidious.projectsegfau.lt
|
|
0.0.0.0 invidious.slipfox.xyz
|
|
0.0.0.0 invidious.privacydev.net
|
|
0.0.0.0 invidious.perennialte.ch
|
|
0.0.0.0 invidious.protokoll-11.de
|
|
0.0.0.0 invidious.einfachzocken.eu
|
|
0.0.0.0 invidious.fdn.fr
|
|
0.0.0.0 inv.in.projectsegfau.lt
|
|
0.0.0.0 invidious.tiekoetter.com
|
|
0.0.0.0 invidious.lunar.icu
|
|
0.0.0.0 iv.ggtyler.dev
|
|
0.0.0.0 iv.melmac.space
|
|
0.0.0.0 piped.video
|
|
0.0.0.0 www.piped.video
|
|
0.0.0.0 piped.kavin.rocks
|
|
0.0.0.0 piped.mha.fi
|
|
0.0.0.0 piped.mint.lgbt
|
|
0.0.0.0 piped.projectsegfau.lt
|
|
0.0.0.0 piped.privacydev.net
|
|
0.0.0.0 piped.smnz.de
|
|
0.0.0.0 piped.adminforge.de
|
|
0.0.0.0 watch.whatever.social
|
|
0.0.0.0 piped.lunar.icu
|
|
0.0.0.0 viewtube.io
|
|
0.0.0.0 www.viewtube.io
|
|
0.0.0.0 freetube.io
|
|
0.0.0.0 www.freetube.io
|
|
0.0.0.0 tubo.media
|
|
0.0.0.0 www.tubo.media
|
|
0.0.0.0 materialious.nadeko.net
|
|
0.0.0.0 clipious.org
|
|
0.0.0.0 www.clipious.org
|
|
0.0.0.0 newpipe.net
|
|
0.0.0.0 www.newpipe.net
|
|
0.0.0.0 newpipe.schabi.org
|
|
0.0.0.0 grayjay.app
|
|
0.0.0.0 www.grayjay.app
|
|
0.0.0.0 libretube.dev
|
|
0.0.0.0 www.libretube.dev
|
|
0.0.0.0 hyperion.deishelon.com
|
|
0.0.0.0 inv.n8pjl.ca
|
|
0.0.0.0 inv.zzls.xyz
|
|
0.0.0.0 inv.tux.pizza
|
|
0.0.0.0 invidious.incogniweb.net
|
|
0.0.0.0 invidious.drgns.space
|
|
0.0.0.0 invidious.io.lol
|
|
|
|
# Steam Store
|
|
0.0.0.0 store.steampowered.com
|
|
0.0.0.0 checkout.steampowered.com
|
|
0.0.0.0 store.akamai.steamstatic.com
|
|
0.0.0.0 storefront.steampowered.com
|
|
0.0.0.0 store.cloudflare.steamstatic.com
|
|
|
|
# Discord - media allowed
|
|
# 0.0.0.0 cdn.discordapp.com
|
|
# 0.0.0.0 media.discordapp.net
|
|
# 0.0.0.0 images-ext-1.discordapp.net
|
|
# 0.0.0.0 images-ext-2.discordapp.net
|
|
# 0.0.0.0 attachments-1.discordapp.net
|
|
# 0.0.0.0 attachments-2.discordapp.net
|
|
# 0.0.0.0 tenor.com
|
|
# 0.0.0.0 giphy.com
|
|
|
|
# Food Delivery Services
|
|
# Polish services
|
|
0.0.0.0 pyszne.pl
|
|
0.0.0.0 www.pyszne.pl
|
|
0.0.0.0 m.pyszne.pl
|
|
0.0.0.0 api.pyszne.pl
|
|
0.0.0.0 app.pyszne.pl
|
|
0.0.0.0 glovo.com
|
|
0.0.0.0 www.glovo.com
|
|
0.0.0.0 m.glovo.com
|
|
0.0.0.0 api.glovo.com
|
|
0.0.0.0 glovoapp.com
|
|
0.0.0.0 www.glovoapp.com
|
|
0.0.0.0 bolt.eu
|
|
:: bolt.eu
|
|
0.0.0.0 www.bolt.eu
|
|
:: www.bolt.eu
|
|
0.0.0.0 food.bolt.eu
|
|
:: food.bolt.eu
|
|
0.0.0.0 m.bolt.eu
|
|
:: m.bolt.eu
|
|
0.0.0.0 api.bolt.eu
|
|
:: api.bolt.eu
|
|
0.0.0.0 node.bolt.eu
|
|
:: node.bolt.eu
|
|
0.0.0.0 gw.bolt.eu
|
|
:: gw.bolt.eu
|
|
0.0.0.0 client-api.bolt.eu
|
|
:: client-api.bolt.eu
|
|
0.0.0.0 auth.bolt.eu
|
|
:: auth.bolt.eu
|
|
0.0.0.0 cdn.bolt.eu
|
|
:: cdn.bolt.eu
|
|
0.0.0.0 images.bolt.eu
|
|
:: images.bolt.eu
|
|
0.0.0.0 static.bolt.eu
|
|
:: static.bolt.eu
|
|
0.0.0.0 assets.bolt.eu
|
|
:: assets.bolt.eu
|
|
0.0.0.0 fleet.bolt.eu
|
|
:: fleet.bolt.eu
|
|
0.0.0.0 user.bolt.eu
|
|
:: user.bolt.eu
|
|
0.0.0.0 courier.bolt.eu
|
|
:: courier.bolt.eu
|
|
0.0.0.0 rider.bolt.eu
|
|
:: rider.bolt.eu
|
|
0.0.0.0 restaurant.bolt.eu
|
|
:: restaurant.bolt.eu
|
|
0.0.0.0 partner-food.bolt.eu
|
|
:: partner-food.bolt.eu
|
|
0.0.0.0 woltwojta.pl
|
|
0.0.0.0 www.woltwojta.pl
|
|
0.0.0.0 wolt.com
|
|
0.0.0.0 www.wolt.com
|
|
0.0.0.0 m.wolt.com
|
|
0.0.0.0 api.wolt.com
|
|
0.0.0.0 restaurant-api.wolt.com
|
|
0.0.0.0 consumer-api.wolt.com
|
|
0.0.0.0 jush.pl
|
|
0.0.0.0 www.jush.pl
|
|
0.0.0.0 m.jush.pl
|
|
0.0.0.0 api.jush.pl
|
|
0.0.0.0 delio.pl
|
|
:: delio.pl
|
|
0.0.0.0 www.delio.pl
|
|
:: www.delio.pl
|
|
0.0.0.0 m.delio.pl
|
|
:: m.delio.pl
|
|
0.0.0.0 api.delio.pl
|
|
:: api.delio.pl
|
|
0.0.0.0 app.delio.pl
|
|
:: app.delio.pl
|
|
0.0.0.0 cdn.delio.pl
|
|
:: cdn.delio.pl
|
|
0.0.0.0 static.delio.pl
|
|
:: static.delio.pl
|
|
0.0.0.0 order.delio.pl
|
|
:: order.delio.pl
|
|
0.0.0.0 delio.com
|
|
:: delio.com
|
|
0.0.0.0 www.delio.com
|
|
:: www.delio.com
|
|
0.0.0.0 m.delio.com
|
|
:: m.delio.com
|
|
0.0.0.0 api.delio.com
|
|
:: api.delio.com
|
|
0.0.0.0 app.delio.com
|
|
:: app.delio.com
|
|
0.0.0.0 delio.com.pl
|
|
:: delio.com.pl
|
|
0.0.0.0 www.delio.com.pl
|
|
:: www.delio.com.pl
|
|
0.0.0.0 m.delio.com.pl
|
|
:: m.delio.com.pl
|
|
0.0.0.0 api.delio.com.pl
|
|
:: api.delio.com.pl
|
|
0.0.0.0 app.delio.com.pl
|
|
:: app.delio.com.pl
|
|
0.0.0.0 lisek.app
|
|
0.0.0.0 www.lisek.app
|
|
0.0.0.0 api.lisek.app
|
|
0.0.0.0 stava.app
|
|
0.0.0.0 www.stava.app
|
|
0.0.0.0 api.stava.app
|
|
0.0.0.0 biedronka.pl
|
|
0.0.0.0 zakupy.biedronka.pl
|
|
0.0.0.0 ezakupy.tesco.pl
|
|
0.0.0.0 www.ezakupy.tesco.pl
|
|
0.0.0.0 barbora.pl
|
|
0.0.0.0 www.barbora.pl
|
|
0.0.0.0 api.barbora.pl
|
|
0.0.0.0 frisco.pl
|
|
0.0.0.0 www.frisco.pl
|
|
0.0.0.0 api.frisco.pl
|
|
0.0.0.0 swiatkwiatow.pl
|
|
0.0.0.0 www.swiatkwiatow.pl
|
|
0.0.0.0 allegro.pl/kategoria/jedzenie
|
|
0.0.0.0 szama.pl
|
|
0.0.0.0 www.szama.pl
|
|
0.0.0.0 api.szama.pl
|
|
0.0.0.0 auchandirect.pl
|
|
0.0.0.0 www.auchandirect.pl
|
|
|
|
# International services
|
|
0.0.0.0 ubereats.com
|
|
0.0.0.0 www.ubereats.com
|
|
0.0.0.0 m.ubereats.com
|
|
0.0.0.0 api.ubereats.com
|
|
0.0.0.0 uber.com
|
|
0.0.0.0 www.uber.com
|
|
0.0.0.0 m.uber.com
|
|
0.0.0.0 api.uber.com
|
|
0.0.0.0 cn-geo1.uber.com
|
|
0.0.0.0 login.uber.com
|
|
0.0.0.0 auth.uber.com
|
|
0.0.0.0 riders.uber.com
|
|
0.0.0.0 deliveroo.com
|
|
0.0.0.0 www.deliveroo.com
|
|
0.0.0.0 m.deliveroo.com
|
|
0.0.0.0 api.deliveroo.com
|
|
0.0.0.0 deliveroo.co.uk
|
|
0.0.0.0 www.deliveroo.co.uk
|
|
0.0.0.0 foodpanda.com
|
|
0.0.0.0 www.foodpanda.com
|
|
0.0.0.0 m.foodpanda.com
|
|
0.0.0.0 api.foodpanda.com
|
|
0.0.0.0 grubhub.com
|
|
0.0.0.0 www.grubhub.com
|
|
0.0.0.0 m.grubhub.com
|
|
0.0.0.0 api.grubhub.com
|
|
0.0.0.0 doordash.com
|
|
0.0.0.0 www.doordash.com
|
|
0.0.0.0 m.doordash.com
|
|
0.0.0.0 api.doordash.com
|
|
0.0.0.0 justeat.com
|
|
0.0.0.0 www.justeat.com
|
|
0.0.0.0 m.justeat.com
|
|
0.0.0.0 justeat.co.uk
|
|
0.0.0.0 www.justeat.co.uk
|
|
0.0.0.0 postmates.com
|
|
0.0.0.0 www.postmates.com
|
|
0.0.0.0 api.postmates.com
|
|
0.0.0.0 seamless.com
|
|
0.0.0.0 www.seamless.com
|
|
0.0.0.0 menulog.com.au
|
|
0.0.0.0 www.menulog.com.au
|
|
0.0.0.0 delivery.com
|
|
0.0.0.0 www.delivery.com
|
|
0.0.0.0 getir.com
|
|
0.0.0.0 www.getir.com
|
|
0.0.0.0 api.getir.com
|
|
0.0.0.0 flink.com
|
|
0.0.0.0 www.flink.com
|
|
0.0.0.0 api.flink.com
|
|
0.0.0.0 gorillas.io
|
|
0.0.0.0 www.gorillas.io
|
|
0.0.0.0 api.gorillas.io
|
|
0.0.0.0 gopuff.com
|
|
0.0.0.0 www.gopuff.com
|
|
0.0.0.0 api.gopuff.com
|
|
0.0.0.0 instacart.com
|
|
0.0.0.0 www.instacart.com
|
|
0.0.0.0 api.instacart.com
|
|
0.0.0.0 takeaway.com
|
|
0.0.0.0 www.takeaway.com
|
|
0.0.0.0 api.takeaway.com
|
|
|
|
# Fast food chain apps and websites
|
|
0.0.0.0 mcdonalds.com
|
|
0.0.0.0 www.mcdonalds.com
|
|
0.0.0.0 m.mcdonalds.com
|
|
0.0.0.0 mcdonalds.pl
|
|
0.0.0.0 www.mcdonalds.pl
|
|
0.0.0.0 kfc.com
|
|
0.0.0.0 www.kfc.com
|
|
0.0.0.0 m.kfc.com
|
|
0.0.0.0 kfc.pl
|
|
0.0.0.0 www.kfc.pl
|
|
0.0.0.0 burgerking.com
|
|
0.0.0.0 www.burgerking.com
|
|
0.0.0.0 m.burgerking.com
|
|
0.0.0.0 burgerking.pl
|
|
0.0.0.0 www.burgerking.pl
|
|
0.0.0.0 pizzahut.com
|
|
0.0.0.0 www.pizzahut.com
|
|
0.0.0.0 m.pizzahut.com
|
|
0.0.0.0 pizzahut.pl
|
|
0.0.0.0 www.pizzahut.pl
|
|
0.0.0.0 dominos.com
|
|
0.0.0.0 www.dominos.com
|
|
0.0.0.0 m.dominos.com
|
|
0.0.0.0 dominos.pl
|
|
0.0.0.0 www.dominos.pl
|
|
0.0.0.0 subway.com
|
|
0.0.0.0 www.subway.com
|
|
0.0.0.0 m.subway.com
|
|
0.0.0.0 subway.pl
|
|
0.0.0.0 www.subway.pl
|