Skip to content

Instantly share code, notes, and snippets.

@eklex
Last active February 1, 2020 03:09
Show Gist options
  • Save eklex/99638beb4b5a6ba39b43100a264df43a to your computer and use it in GitHub Desktop.
Save eklex/99638beb4b5a6ba39b43100a264df43a to your computer and use it in GitHub Desktop.
Get latest version of dnscrypt-proxy utils
#!/bin/bash
NOW=`date +"%Y-%m-%d_%T"`
BASE_LOCAL_DIR="."
LOCAL_DIR="$BASE_LOCAL_DIR/$NOW"
BASE_URL="https://raw.githubusercontent.com/DNSCrypt/dnscrypt-proxy/master/utils/generate-domains-blacklists"
FILES=(
"generate-domains-blacklist.py"
"domains-whitelist.txt"
"domains-time-restricted.txt"
"domains-blacklist.conf"
"domains-blacklist-local-additions.txt"
)
mkdir -p "$LOCAL_DIR"
for file in "${FILES[@]}"; do
url="$BASE_URL/$file"
curl -s "$url" > "$LOCAL_DIR/$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment