1. 测速脚本

自定义测速脚本,用于对国外 vps 配置以及网络测试

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

2. 一键 DD 网络重装脚本

wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh
 
CentOS:Pwd@CentOS

其他 Linux 系统:Pwd@Linux

系统DD包下载:https://dd.1234234.xyz/

3. Debian,Ubuntu 开启 BBR

#修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
 
#保存生效
sysctl -p
 
#查看内核是否已开启BBR
lsmod | grep bbr
 
#显示如下,即成功
tcp_bbr                20480  2

4. bbr/bbrplus/ 锐速内核安装脚本

#卸载内核
wget -N --no-check-certificate "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
或
wget -O tcp.sh "https://git.io/coolspeeda" && chmod +x tcp.sh && ./tcp.sh
 
#不卸载内核
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
或
wget -O tcpx.sh "https://git.io/JYxKU" && chmod +x tcpx.sh && ./tcpx.sh

5. 哪吒状态监控

#海外
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh  -o nezha.sh && chmod +x nezha.sh
./nezha.sh
 
#大陆
curl -L https://cdn.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o nezha.sh && chmod +x nezha.sh
CN=true ./nezha.sh

6. 宝塔

挂载数据盘
https://www.bt.cn/bbs/thread-3187-1-1.html
 
安装面板
https://www.bt.cn/bbs/thread-19376-1-1.html
 
卸载面板
https://www.bt.cn/bbs/thread-9043-1-1.html
 
宝塔查看账号密码
bt default

7. 宝塔秒级监控

#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
step=1
for (( i = 0; i < 60; i=(i+step) )); do
curl -sS --connect-timeout 10 -m 60 '网址'
echo "----------------------------------------------------------------------------"
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "[$endDate] OK"
echo "----------------------------------------------------------------------------"
sleep $step
done
exit 0

8. Screen

#新建i窗口
screen -S i
 
#查看所有窗口
screen -ls
 
#接入i窗口
screen -r i
 
#关闭i窗口
screen -X -S i quit
 
#结束已死进程
screen -wipe
Git
#配置同户名邮箱
git config --global user.name “idarku”
git config --global user.email “i.1999@qq.com”
 
#克隆远程仓库
git clone https://github.com/idarku/img.git
 
#添加当前目录文件
git add .
 
#提交说明
git commit -m 'ii.do'
 
#更新到仓库
git push origin main

9. 容器同步时间方法

第一种方法
apk add -U tzdata
第二种方法
cd / && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime