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
| #!/usr/bin/env bash | |
| # Claude Sonnet 4.6 | |
| # 脚本名称: swap.sh | |
| # 功能描述: Linux VPS 一键添加/删除 swap,针对 1c1g 优化 | |
| # 作者: noa1188 | |
| # 更新日期: 2026-03-21 | |
| # 使用方法: bash swap.sh | |
| Green="\033[32m" | |
| Font="\033[0m" |
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 | |
| # | |
| # BBR + FQ 调优状态检查脚本 | |
| # Author: XiaoDian / ChatGPT | |
| # Date: 2025-09-22 | |
| # | |
| set -e | |
| echo "===== BBR + FQ 状态检查 =====" |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ========================================================= | |
| # BBR+fq TCP 调优 + 冲突清理(智能版:自动识别SSH客户端IP) | |
| # - 新增:优先自动从SSH连接中获取客户端IP进行RTT测试,失败则回退到手动输入 | |
| # - 计算:BDP(bytes)=Mbps*125*ms;max = min(2*BDP, 3%RAM, 64MB);向下桶化至 {4,8,16,32,64}MB | |
| # - 写入:/etc/sysctl.d/999-net-bbr-fq.conf | |
| # - 清理:备份并注释 /etc/sysctl.conf 的冲突键;备份并移除 /etc/sysctl.d/*.conf 中含冲突键的旧文件 | |
| # - 其他目录(/usr/lib|/lib|/usr/local/lib|/run/sysctl.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
| Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/5.0 | |
| Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.10 Safari/605.1.1 | |
| Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.3 | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.3 | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Trailer/93.3.8652.5 | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0. | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0. | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 OPR/117.0.0. | |
| Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/ |