Skip to content

Instantly share code, notes, and snippets.

@real-jiakai
Last active May 10, 2024 08:31
Show Gist options
  • Save real-jiakai/dd14d322ec9d0cd60a19cbd96ebbc708 to your computer and use it in GitHub Desktop.
Save real-jiakai/dd14d322ec9d0cd60a19cbd96ebbc708 to your computer and use it in GitHub Desktop.
ssh工具代码脚本片段

1、debian、ubuntu更新并升级软件包

apt update && apt upgrade -y

2、docker compose重新部署

docker compose down && docker compose up -d

3、测试cf识别ip

curl https://1.1.1.1/cdn-cgi/trace

4、检测opeani能否访问【已弃用】

bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/OpenAI-Checker/openai.sh)

5、检测流媒体解锁情况01

bash <(curl -L -s check.unlock.media)

6、检测流媒体解锁情况02(1024社区提供)

wget -qO- https://github.com/yeahwu/check/raw/main/check.sh | bash

7、新增1G的swap脚本

curl https://raw.githubusercontent.com/real-jiakai/linux-scripts/main/create_swap.sh | bash

8、判断终端是否处理代理状态(用于国内机器)

curl cip.cc

9、获取ip地址信息01

curl ipinfo.io/8.8.8.8/json

10、获取ip地址信息02

curl https://ipapi.co/json

11、一键安装新版xui脚本

bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

12、更新xui面板的geo数据

curl -L https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat -o /usr/local/x-ui/bin/geosite.dat

13、开启bbr加速

# 将新的默认队列调度算法设置为 "fq"
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
# 将新的TCP拥塞控制算法设置为 "bbr"
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# 立即应用新的系统控制参数
sysctl -p

14、一键安装docker

curl https://get.docker.com | bash

15、yabs脚本

curl -sL yabs.sh | bash

16、三网回程测试【含CMIN2】

curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh

17、奈飞解锁检测脚本

curl https://raw.githubusercontent.com/zhanghanyun/backtrace/main/install.sh -sSf | sh

18、融合怪测评脚本

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

19、获取ip信息03

curl json.ipv4.myip.wtf

20、禁用ipv6地址

echo -e "net.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" >> /etc/sysctl.conf

21、superspeed测速

bash <(curl -Lso- https://git.io/superspeed.sh)

22、多功能测速脚本

bash <(curl -sL bash.icu/speedtest)

23、nexttrace安装

curl nxtrace.org/nt |bash

24、超售检测脚本

curl https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh | bash

25、中国网络速度测试

curl -sL network-speed.xyz | bash -s -- -r china

26、获取ip地址信息03

curl https://iplookup.forbi.workers.dev

27、一键删除平台监控

curl -L https://ghproxy.com/https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/install_scripts/dlm.sh -o dlm.sh && chmod +x dlm.sh && bash dlm.sh

28、1Stream流媒体解锁脚本

bash <(curl -L -s https://netflix.dad/detect-script)

29、检测chatgpt安卓解锁

curl android.chat.openai.com

30、检测chatgpt ios解锁

curl ios.chat.openai.com

31、benchmonster测试脚本

curl -sL bench.monster | bash -s -- -china

32、NodeBench

bash <(curl -sL https://raw.githubusercontent.com/LloydAsp/NodeBench/main/NodeBench.sh)

33、更新sing-box内核【chika0801】

curl -Lo sing-box.tar.gz https://github.com/SagerNet/sing-box/releases/latest/download/$(curl https://api.github.com/repos/SagerNet/sing-box/releases|grep -E '"name": "sing-box-.*-linux-amd64.tar.gz"'|grep -Pv '(alpha|beta|rc)'|sed -n 's/.*"name": "\(.*\)".*/\1/p'|head -1) && tar -xzf sing-box.tar.gz && cp -f sing-box-*/sing-box . && rm -r sing-box.tar.gz sing-box-* && chown root:root sing-box && chmod +x sing-box && mv -f sing-box /usr/local/bin/

34、更新sing-box内核【官方源】

# 更新sing-box内核操作
curl -Lo sing-box.tar.gz https://github.com/SagerNet/sing-box/releases/latest/download/$(curl https://api.github.com/repos/SagerNet/sing-box/releases|grep -E '"name": "sing-box-.*-linux-amd64.tar.gz"'|grep -Pv '(alpha|beta|rc)'|sed -n 's/.*"name": "\(.*\)".*/\1/p'|head -1) && tar -xzf sing-box.tar.gz && cp -f sing-box-*/sing-box . && rm -r sing-box.tar.gz sing-box-* && chown root:root sing-box && chmod +x sing-box && mv -f sing-box /usr/bin/

35、dd脚本【海外】

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

36、dd脚本【国内】

wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

37、ip质量检测

bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/qzcheck.sh)

38、openvz/lxc小鸡dd

wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh

39、测试ipv6子网大小

curl -L https://raw.githubusercontent.com/spiritLHLS/ecs/main/archive/eo6s.sh -o eo6s.sh && chmod +x eo6s.sh && bash eo6s.sh

40、warp脚本

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh

41、一键部署出售流量的项目

curl https://raw.githubusercontent.com/real-jiakai/linux-scripts/main/sell-my-traffic.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment