Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/someonewhocares
Pull and install the latest host file from someonewhocares.org
https://github.com/bahamas10/someonewhocares
Last synced: about 2 months ago
JSON representation
Pull and install the latest host file from someonewhocares.org
- Host: GitHub
- URL: https://github.com/bahamas10/someonewhocares
- Owner: bahamas10
- Created: 2013-11-24T21:01:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T07:09:06.000Z (almost 6 years ago)
- Last Synced: 2024-05-08T19:53:34.754Z (8 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
someonewhocares
==================Pull and install the latest host file from http://someonewhocares.org
provided by Dan PollockExample
-------Run the script with no arguments to pull and install the latest host file.
This script does not need to be run as root, as it will attempt to install
the host file with `sudo` if it fails at first.$ ./someonewhocares
> pulling latest host file from http://someonewhocares.org/hosts//hosts... done
> validating host file... passed
> installing new host file
tee: /etc/hosts: Permission denied
> failed - retrying with sudo
Password:
> finished! # Last updated: Nov 24th, 2013 at 10:24The host file downloaded is automatically validated to ensure that each IP
address is `127.0.0.1`, `255.255.255.255`, `0.0.0.0`, `::1`, or `fe80::1%lo0`
before being installed.Usage
-----$ someonewhocares
usage: someonewhocares [options]pull and install the latest host file from someonewhocares.org
options
-h print this message and exit
-t the host file type to pull, can be [ipv6, zero], leave blank for default
-u uninstall the host file by replacing it with a default templateLicense
-------MIT License