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
#!/bin/bash | |
curl "https://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound&showintro=1&mimetype=plaintext" > /etc/unbound/unbound_ad_servers | |
/etc/init.d/unbound restart |
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
#!/bin/bash | |
# to be stored into /config/scripts/post-config.d/10_restore-custom.sh | |
config_root=/config/user-data/root/ | |
cp /config/user-data/root/sbin/dhclient3 /sbin/ | |
dpkg -i /config/user-data/root/unbound_install/*.deb | |
mkdir /unbound_install | |
mkdir -p /var/log/vlmcsd |
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
#!/bin/bash | |
doneit='/var/lib/my_packages' | |
packages='dnsutils unbound vim nano wget' | |
if [ -e $doneit ]; then | |
exit 0; | |
fi | |
sudo dpkg --configure -a | |
apt-get update |
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
# | |
# For more information about this list, see: https://pgl.yoyo.org/adservers/ | |
# ---- | |
# last updated: Sat, 05 May 2018 18:50:23 GMT | |
# entries: 2651 | |
# format: unbound (unbound -- for use with the Unbound DNS server) | |
# credits: Peter Lowe - pgl@yoyo.org - https://pgl.yoyo.org/ - https://twitter.com/pgl | |
# this URL: http://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound&showintro=0&mimetype=plaintext | |
# other formats: https://pgl.yoyo.org/adservers/formats.php | |
# policy: https://pgl.yoyo.org/adservers/policy.php |
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
sudo apt-get update | |
sudo apt-get install wget nano unbound | |
configure | |
set system name-server 127.0.0.1 | |
set service dhcp-server shared-network-name LAN1 subnet 10.0.0.0/24 dns-server 10.0.0.1 | |
set service dhcp-server use-dnsmasq disable | |
set service dns | |
commit;save | |
exit |
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
# See the unbound.conf(5) man page. | |
# | |
# See /usr/share/doc/unbound/examples/unbound.conf for a commented | |
# reference config file. | |
server: | |
auto-trust-anchor-file: "/var/lib/unbound/root.key" | |
verbosity: 1 | |
interface: 0.0.0.0 | |
interface: ::0 |
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
"C:\Program Files\7-Zip\7z.exe" e %1*.rar >> c:\temp\7z-output.txt 2>> c:\temp\7z-errors.txt |
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
#!/bin/sh | |
# remote mono-directional sync v2.4 | |
# note: the first time this script runs, nothing append | |
# because the script initializes the last exec to now. | |
# configuration parameters | |
# remote folder to sync to (the source) | |
REMOTE_FOLDER='' | |
# remote host and username to id against |