463 current 2025-06-28 22:07:32 25.05.20250424.f771eb4 6.12.24 *

This commit is contained in:
2025-06-28 22:08:14 -04:00
parent f165b550e8
commit ad952f7225
4 changed files with 23 additions and 2 deletions

20
home/scripts/fullclip.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
tmpfile=$(mktemp)
trap 'rm -f "$tmpfile"' EXIT
if (( $# == 0 )); then
printf 'usage: %s command [arg …] — or — %s "full pipeline"\n' "$0" "$0" >&2
exit 1
fi
if (( $# == 1 )); then
bash -c "$1" >"$tmpfile"
else
"$@" >"$tmpfile"
fi
data=$(cat "$tmpfile")
op="$*"
echo -e "\$ $op\n$data" | perl -p -e 'chomp if eof' | xclip -in -sel clip
rm "$tmpfile"

View File

@@ -1,3 +1,4 @@
# websites i'd like to (automatically) block on certain wifi connections
set -euo pipefail set -euo pipefail
blacklist=( blacklist=(

View File

@@ -12,7 +12,7 @@
enable = true; enable = true;
resolveLocalQueries = true; resolveLocalQueries = true;
settings = { settings = {
conf-dir = "/var/lib/dnsmasq/conf.d"; conf-dir = "/var/lib/dnsmasq/conf.d"; # see ../networking/blockers.sh and ...../home/scripts/dns
listen-address = "127.0.0.1"; listen-address = "127.0.0.1";
resolv-file = "/dev/null"; # god fuck you fuck you fuck you tailscale + systemd-resolved + dnsmasq it took me *three hours* at 3am to get this one working resolv-file = "/dev/null"; # god fuck you fuck you fuck you tailscale + systemd-resolved + dnsmasq it took me *three hours* at 3am to get this one working
server = ["1.1.1.1" "1.0.0.1"]; server = ["1.1.1.1" "1.0.0.1"];

View File

@@ -7,7 +7,7 @@
./synaptics/default.nix ./synaptics/default.nix
./tailscale/default.nix ./tailscale/default.nix
./syncthing/default.nix ./syncthing/default.nix
# ./resolved/default.nix # ./resolved/default.nix (not enabled, in favor of dnsmasq)
./dnsmasq/default.nix ./dnsmasq/default.nix
]; ];
} }