Skip to content

Instantly share code, notes, and snippets.

View idonotknowwhoiam's full-sized avatar
😒
...

idonotknowwhoiam

😒
...
  • Belarus
  • 21:46 (UTC +03:00)
View GitHub Profile
@idonotknowwhoiam
idonotknowwhoiam / gist:fbb3a7722c081d3259aec535b5288e7a
Last active June 10, 2025 22:35
generate proxy hosts file from smartdns
#!/usr/bin/env bash
#
# Dependencies: requires the 'q' utility (https://github.com/natesales/q)
# Exit immediately if a command exits with a non-zero status.
set -euo pipefail
# --- Predefined DNS servers ---
# You can add more by following the same pattern.
get_dns_server() {