You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for your effort. I installed it on my Wemos D1 Mini and it works very well and fastern then expected.
Unfortunately I've had problems with the script. I'm on macos 10.14.6.
I had to change a bit to make it work.
I transfered the files to my Arduino Sketchbook
For me it must be bash instead of sh. Otherwise I got errors. I made a chmod 755 gen_block_lists.sh then ./gen_block_lists.sh. Or other ways work too.
I had to change the temp dir to something within my home folder. So I took the Ardunio Sketchbook folder. Alter for personal preferences.
The first for loop didn't work for me either. I had to rewrite it a little bit.
#!/bin/bash# Script for downloading and converting the ad server lists to smaller filesHOSTS_URL="https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext&useip=0.0.0.0"#HOSTS_URL="http://someonewhocares.org/hosts/zero/hosts"#edit: your personal sketchbook folderPATH_ARDUINO_SKETCHBOOK="/Users/XYZ/Arduino"#edit if your esphole repo is not located in the sketch folder or was renamed already:HOSTS_TEMP_DIR=$PATH_ARDUINO_SKETCHBOOK"/esphole-master/utils/temp"mkdir -p $HOSTS_TEMP_DIRHOST_LIST="$HOSTS_TEMP_DIR/host_list"wget $HOSTS_URL -O - | grep -v '#' | grep "0.0.0.0" | sed 's/0\.0\.0\.0 //g' > $HOST_LIST# saves each domain in a file depending on its charactersfor i in $(cat $HOST_LIST)dox=$(echo -n $i | tr '\n' ' ' | tr "\r" " ")name=$(echo -n $x | wc -m)echo -n ",$x" >> hosts_$(echo -n $name)done# adds a kind of EOF for making easier the findUntilfor i in $(ls -1 hosts_*)doecho ",@@@" >> $idonemkdir -p $HOSTS_TEMP_DIR/../../datamv hosts_* $HOSTS_TEMP_DIR/../../data/
The text was updated successfully, but these errors were encountered:
Hi, thank you for your effort. I installed it on my Wemos D1 Mini and it works very well and fastern then expected.
Unfortunately I've had problems with the script. I'm on macos 10.14.6.
I had to change a bit to make it work.
bash
instead ofsh
. Otherwise I got errors. I made achmod 755 gen_block_lists.sh
then./gen_block_lists.sh
. Or other ways work too.temp
dir to something within my home folder. So I took the Ardunio Sketchbook folder. Alter for personal preferences.for loop
didn't work for me either. I had to rewrite it a little bit.The text was updated successfully, but these errors were encountered: