From ab291fb0f33773fa042e2eecadc2985c8c007d0f Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 28 Mar 2019 11:54:49 +0530 Subject: [PATCH] Adds dnscrypt blocklist generation --- housekeeping | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/housekeeping b/housekeeping index 7d0b828..8a3da00 100755 --- a/housekeeping +++ b/housekeeping @@ -31,4 +31,21 @@ pass git pushall # Sync mobile passwords cd /home/nemo/projects/personal/mobile-passwords -git from && ./runme.sh && git pushall \ No newline at end of file +git from && ./runme.sh && git pushall + +# Sync mobile passwords +pushd /home/nemo/projects/personal/mobile-passwords +git from && ./runme.sh && git push origin master +popd + +# Generate a blacklist hosts file +if ping -c 1 192.168.1.1 &> /dev/null +then + # Generate the Blacklist + pushd /home/nemo/projects/personal/dnscrypt-proxy/contrib/ + python2 ./generate-domains-blacklist.py > blacklist.txt + blacklist2hosts.php blacklist.txt hosts + popd +else + echo 0 +fi \ No newline at end of file