echo '<!DOCTYPE html><html></html>' > /usr/lib/lua/luci/view/openclash/myip.htm
curl -sL https://gist.githubusercontent.com/anasfanani/3702de995a1b2953404bec4f72cdd349/raw/config_editor.sh | sh
# port: 7890 | |
# socks-port: 7891 | |
mixed-port: 7890 | |
redir-port: 9797 | |
tproxy-port: 0 | |
# rule 规则匹配 | |
# global 全局代理(需要在GLOBAL策略组选择代理/策略) | |
# direct 全局直连 | |
# 此项拥有默认值,默认为规则模式 |
Simple http ping curl
Usage: ./httping.sh [options...] <url>
-ht, --http-timeout <int> HTTP Timeout (default: 2)
-hse, --http-status-expected <int> Expected HTTP response code (default: 200)
-hmr, --http-max-retries <int> HTTP Max Retries (default: 5)
-hds, --http-delay-success <int> HTTP Delay Success (default: 1)
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |