This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 作用: | |
| # | |
| # 将特定的域名及其所有子域名的 DNS 解析请求,通过指定的 DNS 服务器进行解析,即 DNS 分流 | |
| # | |
| # 请在 PowerShell 管理员权限下运行,用法如下: | |
| # | |
| # 将脚本保存为 nrpt.ps1 文件 | |
| # | |
| # 在脚本所在目录内创建 domains.txt 文件,将需要分流的域名,每个域名一行添加到文件内,比如 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0x520F729825d84BbF2b23627e0C8218953366DDeD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -xe | |
| export DISPLAY=':0' | |
| export XAUTHORITY='/home/jinmiaoluo/.Xauthority' | |
| intern=$(xrandr | grep 'Screen\ 0' -A1 | awk 'NR==2{print $1}' | grep -v '^$') | |
| extern=$(xrandr | grep ' connected' | grep -v ${intern} | awk '{print $1}') | |
| user=jinmiaoluo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################# | |
| # note: wireguard-go is required | |
| # please install it before use this script | |
| # you can install wireguard-go with below command | |
| # brew install wireguard-go | |
| ################################################# | |
| IF='utun3' |