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
| $weightMap = @{ | |
| 'ExtraBold' = 'ueb' | |
| 'Bold' = 'ub' | |
| 'SemiBold' = 'usb' | |
| 'Medium' = 'um' | |
| 'Regular' = 'ur' | |
| 'Light' = 'ul' | |
| 'ExtraLight' = 'uel' | |
| 'Thin' = 'ut' | |
| 'ExtraBoldItalic' = 'ieb' |
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
| #!/system/bin/sh | |
| # box.tool | |
| upkernel() { | |
| ... | |
| "sing-box") | |
| api_url="https://api.github.com/repos/SagerNet/sing-box/releases" | |
| url_down="https://github.com/SagerNet/sing-box/releases" | |
| local_version=$(/data/adb/box/bin/sing-box version | awk '/sing-box version [0-9]+\.[0-9]+\.[0-9]+/{print $NF}') |
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 | |
| # GitHub用户名和仓库名 | |
| USER="SagerNet" | |
| REPO="sing-box" | |
| # 临时目录 | |
| temp_dir=$(mktemp -d) | |
| # 获取最新发布的信息 |
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": { | |
| "queryStrategy": "UseIPv4", | |
| "disableCache": true, | |
| "servers": [ | |
| { | |
| "address": "223.5.5.5", | |
| "domains": [ | |
| "www.xxx.com", | |
| "geosite:private", |
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 | |
| # 设置变量 | |
| URL_PREFIX="https://github.com/Loyalsoldier/geoip/raw/release/" | |
| DAT_FILE="geoip-only-cn-private.dat" | |
| SUM_FILE="${DAT_FILE}.sha256sum" | |
| TARGET_DIR="/usr/local/share/xray/" | |
| MAX_RETRIES=3 | |
| ERROR_MSG="错误:在 $MAX_RETRIES 次尝试后未能" |
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
| { | |
| "log": { | |
| "loglevel": "warning", | |
| "error": "/var/log/xray/error.log", | |
| "access": "/var/log/xray/access.log" | |
| }, | |
| "dns": { | |
| "servers": [ | |
| { | |
| "address": "127.0.0.1", |
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 | |
| # 设置变量 | |
| URL_PREFIX="https://github.com/hagerliu/v2ray-rules-dat/raw/release/" | |
| ZIP_FILE="xray-geodata.zip" | |
| SUM_FILE="${ZIP_FILE}.sha256sum" | |
| EXTRACT_DIR="/usr/local/share/xray/" | |
| MAX_RETRIES=3 | |
| ERROR_MSG="错误:在 $MAX_RETRIES 次尝试后未能" |
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
| $OutputEncoding = [System.Text.Encoding]::UTF8 | |
| # 设置代理服务器地址和端口 | |
| $proxy = "http://127.0.0.1:2080" | |
| # 共同部分的链接 | |
| $baseDownloadUrl = "https://github.com/hagerliu/v2ray-rules-dat/raw/release/" | |
| # 设置解压目标目录 | |
| $targetDirectory = "C:\portapps\nekoray" |
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: | |
| enable: true |
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
| [custom] | |
| overwrite_original_rules=true | |
| clash_rule_base=https://gist.github.com/hagerliu/d9999c3578f876bdbd45ecc1c6efc178/raw/cmfo.yaml | |
| custom_proxy_group=Proxy`select`[]DIRECT`.* | |
| ruleset=REJECT,[]GEOSITE,category-ads-all | |
| ruleset=DIRECT,[]GEOSITE,private | |
| ruleset=DIRECT,[]GEOSITE,geolocation-cn | |
| ruleset=DIRECT,[]GEOIP,private,no-resolve | |
| ruleset=DIRECT,[]GEOIP,cn | |
| ruleset=Proxy,[]MATCH |
NewerOlder