Skip to content

Instantly share code, notes, and snippets.

@mvoropaiev
Created October 7, 2019 14:40
Show Gist options
  • Save mvoropaiev/9073fe1cdff0b790edbdf48eb6ab7200 to your computer and use it in GitHub Desktop.
Save mvoropaiev/9073fe1cdff0b790edbdf48eb6ab7200 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -ex
# fetch latest version
curl https://www.micu.eu/adblock/adblock.php >./adblock.rsc
cat adblock.rsc | grep -v 'add address' | grep -v 'ip dns static'
read -n 1 -s -r -p "Press any key to continue"
# copy and import file
scp ./adblock.rsc admin@192.168.88.1:/adblock.rsc
ssh admin@192.168.88.1 /import adblock.rsc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment