Skip to content

Instantly share code, notes, and snippets.

@anthonygelibert
Last active February 25, 2021 20:58
Show Gist options
  • Save anthonygelibert/6a1a81cca382c66653d25007b9ec6dcd to your computer and use it in GitHub Desktop.
Save anthonygelibert/6a1a81cca382c66653d25007b9ec6dcd to your computer and use it in GitHub Desktop.
Update /etc/hosts with the "Zero Hosts" file
#!/bin/sh
# wget -O /etc/hosts.tmp https://someonewhocares.org/hosts/zero/hosts
wget -O /etc/hosts.tmp https://sebsauvage.net/hosts/hosts
icdiff -U 0 /etc/hosts /etc/hosts.tmp
sudo mv /etc/hosts{.tmp,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment