Skip to content

Instantly share code, notes, and snippets.

View felikcat's full-sized avatar

felikcat

  • Northern California, USA
  • 14:01 (UTC -07:00)
View GitHub Profile
@felikcat
felikcat / GNOME.sh
Created October 14, 2023 08:12
Dux -> GNOME installer
#!/bin/bash
set +H
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}" && GIT_DIR=$(git rev-parse --show-toplevel)
source "${GIT_DIR}/scripts/GLOBAL_IMPORTS.sh"
source "${GIT_DIR}/configs/settings.sh"
ConfigGDM() {
@felikcat
felikcat / Enforce_Quad9_DoH.ps1
Created October 6, 2023 10:00
Windows 11 -> High-quality example for setting DNS-over-HTTPS using the Quad9 DNS servers, with PowerShell
$NET_ALIAS = (Get-NetAdapter -Physical)
$NET_DEVID = $NET_ALIAS.InterfaceGuid
$IP = @("9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9")
$IP.ForEach({
# We're not removing the same DoH entries if it already exists; hence "-ErrorAction SilentlyContinue".
Add-DnsClientDohServerAddress -ServerAddress $_ -DohTemplate 'https://dns.quad9.net/dns-query' -AllowFallbackToUdp 0 -AutoUpgrade 1 -ErrorAction SilentlyContinue
})
$NET_ALIAS.ForEach({