This script was written for the Ubiquiti USG. This script downloads various anti-ad hosts files, merges, sorts, and uniques, then installs a new /etc/hosts file for blocking advertisements and tracking.
Download buildhosts-unifi.sh and make it executable:
curl 'http://matthewheadlee.com/projects/miscellaneous/buildhosts-unifi.sh' > buildhosts-unifi.sh chmod 700 buildhosts-unifi.sh
Run buildhosts-unifi.sh once to get the initial hosts file in-place:
Create a new cron job to run buildhosts-unifi.sh once a week:
This script was written for routers running DD-WRT. This script gets various anti-ad hosts files, merges, sorts, and uniques, then installs.
This script grabs the locations of all Tesla chargers, including Superchargers and private chargers from teslamotors.com
No longer works, Tesla took down their list of webpages
This script grabs all of the supercharger pages from teslamotors.com and parses them for the GPS coordinates. It will do a Google Maps lookup if it cannot directly find the coordinates on the page. Currently the script is unable to lookup Chinese superchargers.
Copyright © 2013 Matthew Headlee
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.