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 | |
# | |
swapon /cache/pagefile.sys |
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
function isMatchProxy(url, pattern) { | |
try { | |
return new RegExp(pattern.replace(".", "\\.")).test(url); | |
} catch (e) { | |
return false; | |
} | |
} | |
function FindProxyForURL(url, host) { | |
var Proxy = "PROXY 127.0.0.1:10800"; |
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
function isMatchProxy(url, pattern) { | |
try { | |
return new RegExp(pattern.replace('.', '\\.')).test(url); | |
} catch (e) { | |
return false; | |
} | |
} | |
function FindProxyForURL(url, host) { | |
var Proxy = 'PROXY 127.0.0.1:10800'; |
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
<3>[ 69.132145] qtaguid: tag_stat: stat_update() p2p0 not found | |
<6>[ 69.194582] wlan: [0:E :WDA] SA: e0:05:c5:xx:xx:xx DA: 64:bc:0c:xx:xx:xx | |
<6>[ 69.194602] wlan: [0:E :WDA] Ether Type: 0x0800 | |
<6>[ 69.194612] wlan: [0:E :WDA] IPV4_proto_type: 6 | |
<6>[ 69.194621] wlan: [0:E :WDA] WOW IPV4 TCP Packet rcvd | |
<6>[ 69.194631] wlan: [0:E :WDA] len: 40 sport: 443 dport: 47163 | |
<13>[ 70.779665] init: Starting service 'clear-bcb'... | |
<13>[ 71.833918] init: Service 'clear-bcb' (pid 7067) exited with status 0 | |
<3>[ 72.495382] qtaguid: tag_stat: stat_update() p2p0 not found | |
<4>[ 78.274093] ------------[ cut here ]------------ |
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 | |
# | |
echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra | |
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6 | |
echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra | |
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 | |
echo 0 > /proc/sys/net/ipv6/conf/wlan0/accept_ra | |
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6 | |
sleep 3 | |
echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra |
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
settings put global captive_portal_mode 1 | |
settings put global captive_portal_use_https 1 | |
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204 | |
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 | |
settings put global captive_portal_fallback_url http://captive.v2ex.co/generate_204 | |
settings put global captive_portal_other_fallback_urls http://www.google.cn/generate_204 |
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/sh | |
# | |
fakeipv6=$(ip -6 addr |grep '240e:c2:f803:2d00:200:ff:fe00:0/56') | |
nvramcfg=$(ip -6 route |grep '/64 dev ppp0' |awk '{print $1}' |awk -F / '{print $1}') | |
if [ -n "$fakeipv6" ] | |
then | |
(ip -6 addr del 240e:c2:f803:2d00:200:ff:fe00:0/56 dev br0) | |
nvram unset ipv6_rtr_addr |
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
{"sig":"de336bd39807f4949f9413d6cdeacd58ade16d676eb18893e49f0684f3a1a39cedfa4917834be61a8e8b0e8981c4ad7aa19997f299f336226f75e405063939510","msghash":"83bdac3d952507d21d866b84cb68e1bb0b6e10168817d9be68f8c3da8eb82ecd"} |
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
@echo off | |
REM 注意:此脚本需要在执行的计算机具备UPS为前提的条件下进行,且目标IP设备不能具有UPS。 | |
REM 此批处理可以检测目标IP是否因为停电而失效,一旦失效则在180秒后关机。 | |
REM 需将此批处理写入计划任务才能使用,建议每隔60秒执行一次。 | |
REM 若不知道如何配置计划任务,请参阅 https://twitter.com/chenshaoju/status/973109556640333825 | |
REM 若参照60秒执行一次的话,在120至180秒内若恢复供电(能Ping通),则会取消关机。 | |
REM 若路由器或需要检测的目标IP不是 192.168.1.1 ,请手动修改下方的 192.168.1.1 IP地址。 | |
REM 关机等待时间不建议设置太短,避免手动开机但目标IP未启动时又立刻自动关机。 | |
REM 若只需要监控一个设备(默认),请勿注释下一行。 |
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/sh | |
# | |
su -c "obfs-server -s 123.45.67.89 -p 80 --obfs http -r 123.45.67.89:1234 --failover 123.45.67.89:81" & | |
exit 0 |