This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# # | |
# dnscrypt-proxy configuration # | |
# # | |
############################################## | |
listen_addresses = ['127.0.0.1:53'] | |
server_names = ['mullvad-adblock-doh', 'doh-crypto-sx', 'doh-crypto-sx-ipv6', 'doh-de-blahdns-v6', 'doh-de-blahdns', 'dnscrypt-ch-blahdns-ipv4', 'dnscrypt-ch-blahdns-ipv6', 'dnscrypt-de-blahdns-ipv4', 'dnscrypt-de-blahdns-ipv6', 'cz.nic', 'cz.nic-ipv6', 'doh.appliedprivacy.net', 'libredns-noads', 'libredns', 'powerdns-doh', 'quad9-dnscrypt-ip4-filter-pri', 'quad9-doh-ip4-port443-filter-pri', 'uncensoreddns-ipv4', 'uncensoreddns-ipv6', 'v.dnscrypt.uk-doh-ipv4', 'v.dnscrypt.uk-ipv4'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "chinese proverb:" | |
curl -s https://fortunecookieapi.herokuapp.com/v1/cookie?limit=1 | python3 -c "import sys, json; print(json.load(sys.stdin)[0]['fortune']['message'])" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
with open(sys.argv[1], 'r') as file: | |
directory = sys.argv[1].split('/')[0] | |
directory = os.fsencode(directory) | |
content = file.readline() | |
content = content.split(',') | |
content = [name+'.jpg' for name in content] |