From 8e4f241de445af86e33cdde3e1783cee04f940fd Mon Sep 17 00:00:00 2001 From: txthinking Date: Wed, 8 Jan 2020 08:58:37 +0000 Subject: [PATCH] funding --- .github/FUNDING.yml | 12 +++++ README.md | 117 +++++++++++++++++++++++--------------------- 2 files changed, 72 insertions(+), 57 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..44f5261c --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: google-hosts +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/README.md b/README.md index ee86febe..202e73a9 100644 --- a/README.md +++ b/README.md @@ -1,104 +1,107 @@ -google-hosts -============ +# google-hosts [![Financial Contributors on Open Collective](https://opencollective.com/google-hosts/all/badge.svg?label=financial+contributors)](https://opencollective.com/google-hosts) -[**What**](#what) | [**How**](#how) | [**Must**](#must) | [**Contributing**](#contributing) | [**License**](#license) +[**What**](#what) \| [**How**](#how) \| [**Must**](#must) \| [**Contributing**](#contributing) \| [**License**](#license) -What ---- +## What This project provides some tools to help you find google IP. -How ---- +## How > [Requirements][Requirements] **`getssl.sh` get IP detail** -``` -$ cd google-hosts/scripts - -# get detail of 192.168.1.1 -$ ./getssl.sh 192.168.1.1 -``` + $ cd google-hosts/scripts + # get detail of 192.168.1.1 + $ ./getssl.sh 192.168.1.1 **`find.sh` wrapper of getssl.sh, get IP detail from CIDR** -``` -$ cd google-hosts/scripts + $ cd google-hosts/scripts -# find IP from 192.168.1.1/24 -$ ./find.sh 192.168.1.1/24 -``` + # find IP from 192.168.1.1/24 + $ ./find.sh 192.168.1.1/24 **`filter.sh` filter IP from output directory(generated by find.sh) for some domain** -``` -$ cd google-hosts/scripts + $ cd google-hosts/scripts -# filter IP for *.google.com -$ ./filter.sh *.google.com + # filter IP for *.google.com + $ ./filter.sh *.google.com -# filter IP for mail.google.com -$ ./filter.sh mail.google.com -``` + # filter IP for mail.google.com + $ ./filter.sh mail.google.com **`use.sh` use IP for some domain and update hosts.all** -``` -$ cd google-hosts/scripts + $ cd google-hosts/scripts -# use 192.168.1.1 for *.google.com -$ ./use.sh *.google.com 192.168.1.1 + # use 192.168.1.1 for *.google.com + $ ./use.sh *.google.com 192.168.1.1 -# use 192.168.1.1 for mail.google.com -$ ./use.sh mail.google.com 192.168.1.1 -``` + # use 192.168.1.1 for mail.google.com + $ ./use.sh mail.google.com 192.168.1.1 **`select.sh` run filter.sh, use.sh, use the best IP for domains in hosts.all** -``` -$ cd google-hosts/scripts -$ ./select.sh -``` + $ cd google-hosts/scripts + $ ./select.sh **`apply.sh` update ../hosts from hosts.all** -``` -$ cd google-hosts/scripts -$ ./apply.sh -``` + $ cd google-hosts/scripts + $ ./apply.sh **`auto.sh` find CIDR from a DNS and run find.sh, select.sh, apply.sh** -``` -$ cd google-hosts/scripts -$ ./auto.sh DNS # DNS is like 8.8.8.8, but you should try DNS in diffrent countries. -``` + $ cd google-hosts/scripts + $ ./auto.sh DNS # DNS is like 8.8.8.8, but you should try DNS in diffrent countries. Explaination of output -| IP | LOSS | TIME | SSL | -| --- | --- | --- | --- | -| IP | packet loss | ping time | ssl domain | +| IP | LOSS | TIME | SSL | +| --- | ----------- | --------- | ---------- | +| IP | packet loss | ping time | ssl domain | + +## Must + +- Use google dns / opendns / other +- Use international google. Make google no country redirect: +- Use `https` + +## Contributing + +- vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8 -Must ---- +## Financial Contributors -* Use google dns / opendns / other -* Use international google. Make google no country redirect: -* Use `https` +Become a financial contributor and help us sustain our community. \[[Contribute](https://opencollective.com/google-hosts/contribute)] -Contributing ---- +#### Individuals -* vim:ts=4:sw=4:expandtab:ff=unix:encoding=utf8 + -License ---- +#### Organizations + +Support this project with your organization. Your logo will show up here with a link to your website. \[[Contribute](https://opencollective.com/google-hosts/contribute)] + + + + + + + + + + + + +## License Licensed under The [MIT][MIT] License [Requirements]: https://github.com/txthinking/google-hosts/blob/master/scripts/README.md + [MIT]: https://github.com/txthinking/google-hosts/blob/master/LICENSE