Code Monkey home page Code Monkey logo

daily's Introduction

📅 Daily

CI CDN

This script can be automatically generate something what you needed every day.

Flag Counter

🍭 Lists

Note: The pac list is only designed for SwithcyOmega.

💡 Tips

Visit via jsDelivr CDN.

📡 OpenWrt

  1. Put the scripts into OpenWrt.
  2. Add the following cron jobs.
# adblock
0 3 * * * /path/to/adblock.sh

# chinadns-ng
1 3 * * * /path/to/chinadns-ng.sh

# chinadns
2 3 * * * /path/to/chinadns.sh

# transproxy
3 3 * * * /path/to/transproxy.sh

🙌 Credits

📝 License

Copyright (C) 2018-2023, pexcn <[email protected]>

This program 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 program 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.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

daily's People

Contributors

pexcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

daily's Issues

Performance issue in `scripts/gfwlist/gfwlist.sh`

It seems there are more than 700,000 lines in toplist.txt generated from /scripts/_pre_/01-toplist.sh

The following script in /scripts/gfwlist/gfwlist.sh is CPU intensive.

# find intersection set
grep -Fx -f gfwlist.tmp toplist.txt > gfwlist_head.tmp
# find difference set
grep -Fxv -f toplist.txt gfwlist.tmp > gfwlist_tail.tmp
# merge to gfwlist
cat gfwlist_head.tmp gfwlist_tail.tmp > gfwlist.txt

But why does the merged gfwlist.txt only have less than 10,000 lines eventually?

A better way to cut whitelist domains

Improve todo list: TODO#L3.
These way can be avoid this type of error: dnsmasq-china-list@f0a2385

# use awk better than sed
cat accelerated-domains.china.conf | awk '{split($0, arr, "/"); print arr[2]}'
#cat accelerated-domains.china.conf | awk '{split($0, arr, "[//]"); print arr[2]}'

# use sed
cat accelerated-domains.china.conf | sed -E 's/.*\/(.*)\/.*/\1/'

distribution clean up

  • remove safelist and blacklist
  • remove unused openwrt scripts
  • update readme
  • add chinalist-lite
  • add google.china.conf ?

update ignore ip list

append those lines to PAC list:

# data source from:
# https://github.com/shadowsocks/luci-app-shadowsocks/blob/master/files/root/usr/bin/ss-rules
192.0.0.0/24
192.31.196.0/24
192.52.193.0/24
192.175.48.0/24
224.0.0.0/3 -> 224.0.0.0/4
240.0.0.0/4
255.255.255.255/32


127.0.0.1/32 ?

update and check shadowrocket config template:
https://github.com/pexcn/daily/blob/master/template/shadowrocket/whitelist.conf#L8
https://github.com/pexcn/daily/blob/master/template/shadowrocket/gfwlist.conf#L8

pac: whitelist can't be used

When I use whitelist pac,I can only visit China's websites. No foreign websites like Goole,Facebook or Twitter are accessible.What should I do? I have reloaded the pac and checked my proxy and when I use gfwlist pac,everything is Ok. Is the problem of whitelist pac?

How to get data from Alexa?

Excuse me. Could you tell me where to get data like top-1m.csv.zip file in scripts/_pre_/01-toplist.sh? Is it from Alexa? How to get other kind of data?

add ublacklist

# add ?
*://*/so.php
*://*/so.php?s=*
*://*/cha.php?s=*
*://*/list.php?s=*
*://*/?s=*
*://*/so/*

列表排列顺序对性能的影响?

是否应该将 adlist, chinalist, gfwlist 等里面的域名按照 alexa 排名来排序,这样性能会不会比较好一点?因为放在头部的都是高频访问的域名。

还有一点需要改进的:
sort | uniq 操作不应该在需要生成的最终要使用的文件里面操作,而应该在它所需要的 列表里面操作。

Safe list

Based on gfwlist.txt:

# 127.0.0.1:5300 is non-polluting DNS port
sed -e 's/^/server=\//' -e 's/$/\/127.0.0.1#5300/' gfwlist.txt > safelist-exp.conf
sed -i "1i#\n# Safe list (experimental)\n#\n# Update: $(date +'%Y-%m-%d %T')\n#\n" safelist-exp.conf

Put it into /etc/dnsmasq.d folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.