已保存的指令或脚本
HTML引用快速
https://gcore.jsdelivr.net/npm/jquery@3/dist/jquery.min.js https://unpkg.com/jquery@3.7.1/dist/jquery.min.js https://fastly.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
2025-12-26 09:53:17
debian-9-sources.list
deb http://mirrors.aliyun.com/debian-archive/debian stretch main contrib non-free deb http://mirrors.aliyun.com/debian-archive/debian-security stretch/updates main contrib non-free
2025-12-25 06:15:30
一键测速脚本
国内测速脚本 curl -sL nws.sh | bash -s -- -r china 亚洲测速脚本 curl -sL nws.sh | bash -s -- -r asia 位置名称 region_name = na, sa, eu, asia, africa, au, middle-east, india, china, iran, indonesia, russia, 10gplus 带宽测速使用方法 curl -sL nws.sh | bash -s -- -r region_name wget -qO- nws.sh | bash -s -- -r region_name 稳定性使用方法 curl -sL nws.sh | bash -s -- -rt region_name wget -qO- nws.sh | bash -s -- -rt region_name North America = na South America = sa Europe = eu Asia ... Africa ... Australia ... GCC Middle East ... India ... China ... Iran ... Indonesia ... Russia ...
2025-12-24 07:23:09
Linux查询端口占用
sudo lsof -i :80 sudo ss -tulpn | grep :80
2025-12-24 02:38:23
Ubuntu禁止内核自动升级
# 锁定当前内核的核心包(替换成你自己的内核版本号) sudo apt-mark hold linux-image-$(uname -r) sudo apt-mark hold linux-headers-$(uname -r) sudo apt-mark hold linux-modules-$(uname -r) sudo apt-mark hold linux-modules-extra-$(uname -r) # 若有的话(部分内核版本有这个包) # 若之后想恢复内核自动更新 sudo apt-mark unhold linux-image-$(uname -r) linux-headers-$(uname -r) ... # 对应之前锁定的包
2025-12-24 00:48:40
Ubuntu禁止无人值守自动更新
# 停止当前运行的自动更新服务(若正在执行) sudo systemctl stop unattended-upgrades.service # 禁用服务(禁止开机自启,也不会后台触发) sudo systemctl disable unattended-upgrades.service # 可选:屏蔽服务(防止被其他程序意外启动) sudo systemctl mask unattended-upgrades.service # 修改APT自动更新配置文件 sudo nano /etc/apt/apt.conf.d/20auto-upgrades # 将文件内容修改为全部设为0 APT::Periodic::Update-Package-Lists "0"; # 不自动更新包列表 APT::Periodic::Download-Upgradeable-Packages "0"; # 不自动下载可更新包 APT::Periodic::AutocleanInterval "0"; # 不自动清理旧包 APT::Periodic::Unattended-Upgrade "0"; # 不自动安装更新
2025-12-24 00:43:55
Neofetch是一个命令行工具,用于在终端中显示系统信息
sudo apt install --no-install-recommends neofetch neofetch
2025-12-23 08:23:32
Linux清空apt缓存
# 你的原命令,查看APT缓存总大小 du -sh /var/cache/apt # 细分查看(包文件/索引文件) du -sh /var/cache/apt/archives # 已下载的.deb包 du -sh /var/cache/apt/pkgcache.bin # 包缓存索引 # 方法1:删除过期的APT缓存(保留近期有用的,推荐) sudo apt autoclean # 方法2:删除所有下载的.deb包(彻底清理,不影响已安装软件) sudo apt clean # 方法3:手动删除archives目录下的.deb包(不推荐,建议用apt命令) sudo rm -rf /var/cache/apt/archives/*.deb
2025-12-23 06:41:32
Linux判断是否有网络
ping -c 1 -W 2 1.1.1.1 ping -c 1 -W 2 1.1.1.1 &>/dev/null 无返回值
2025-12-23 04:29:21
续签证书
/www/server/panel/pyenv/bin/python3 -u /www/server/panel/class/acme_v2.py --renew_v2=1
2025-12-22 07:26:06
rsync同步两个文件夹的内容
rsync同步两个文件夹的内容 sudo apt-get install rsync # 对于 Debian/Ubuntu 系统 sudo yum install rsync # 对于 CentOS/RHEL 系统
2025-12-22 04:54:21
Swap脚本
wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
2025-12-17 03:23:42
docker加速
阿里云(杭州) https://registry.cn-hangzhou.aliyuncs.com/ 阿里云(深圳) https://registry.cn-shenzhen.aliyuncs.com/ 阿里云(广州) https://registry.cn-guangzhou.aliyuncs.com/ 阿里云(成都) https://registry.cn-chengdu.aliyuncs.com/ 上海交通大学 https://docker.mirrors.sjtug.sjtu.edu.cn 南京大学 https://docker.nju.edu.cn
2025-12-08 05:58:09
webtop美观配置
docker run -d \ --name=webtop-ubuntu \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Asia/Shanghai \ -e LC_ALL=zh_CN.UTF-8 \ -e CUSTOM_USER=onno \ -e PASSWORD=Howtomakemoney1. \ -p 3000:3000 \ -p 3001:3001 \ -p 8082:8082 \ -p 33560-33570:33560-33570 \ -v /opt/1panel/apps/webtop/ubuntu/config:/config \ --shm-size="1gb" \ --restart unless-stopped \ lscr.io/linuxserver/webtop:ubuntu-kde
2025-12-05 03:41:00
docker加速
https://docker.1panel.live https://hub.rat.dev https://docker.actima.top https://docker.m.daocloud.io https://docker.1ms.run https://docker.aityp.com https://dockerhub.xisoul.cn https://hub.littlediary.cn
2025-12-05 03:09:23
webtop默认配置
docker run -d \ --name=webtop \ -e PUID=1000 \ -e PGID=1000 \ -e TZ=Etc/UTC \ -p 3000:3000 \ -p 3001:3001 \ -v /path/to/data:/config \ --shm-size="1gb" \ --restart unless-stopped \ lscr.io/linuxserver/webtop:latest
2025-12-05 02:41:02
Linux桌面
lscr.io/linuxserver/webtop 桌面 lscr.io/linuxserver/wps-office 文档 https://www.linuxserver.io/our-images
2025-12-05 02:22:20
安装简化图形界面
sudo apt install gnome-core
2025-12-04 06:32:45
安装图形界面
sudo apt-get install ubuntu-desktop sudo systemctl set-default graphical.target sudo apt-get install xrdp && sudo systemctl enable xrdp reboot
2025-12-04 06:29:45
一键更新源,Ubuntu和Debain
sudo apt update && sudo apt upgrade -y
2025-12-04 06:27:50
一键安装Linux简单桌面环境
sudo apt update && sudo apt install -y mate-core xrdp && sudo systemctl enable xrdp --now # 解决黑屏问题 echo "mate-session" > ~/.xsession && chmod +x ~/.xsession
2025-12-04 06:00:39
XRDP基于Windows 远程桌面协议性能较好
# Ubuntu/Debian sudo apt install xrdp sudo systemctl enable xrdp sudo systemctl start xrdp # CentOS/RHEL sudo yum install xrdp sudo systemctl enable xrdp sudo systemctl start xrdp
2025-12-04 05:07:27
Linux桌面KDE-Plasma
sudo apt install kubuntu-desktop # 或最小安装 sudo apt install plasma-desktop
2025-12-04 05:06:37
扫描匹配社交软件用户信息
https://github.com/qeeqbox/social-analyzer
2025-12-01 11:03:26
一键重装DD脚本
https://github.com/bin456789/reinstall
2025-12-01 10:59:27
一套指令修改默认DNS
sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved sudo rm /etc/resolv.conf sudo nano /etc/resolv.conf 替换内容 nameserver 8.8.8.8 nameserver 8.8.4.4 sudo chmod 644 /etc/resolv.conf cat /etc/resolv.conf nslookup google.com
2025-11-27 20:56:17
Centos换源解决过期问题
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
2025-11-27 09:09:58
测速跑分脚本
bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)
2025-11-27 08:49:42
渐变色背景-示例
方案一:暖色调渐变(推荐) /* 替换原来的body背景样式 */ body { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); font-family: 'Roboto', sans-serif; min-height: 100vh; } 方案二:淡雅紫色渐变 /* 替换原来的body背景样式 */ body { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); font-family: 'Roboto', sans-serif; min-height: 100vh; } 方案三:清新绿色渐变 /* 替换原来的body背景样式 */ body { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); font-family: 'Roboto', sans-serif; min-height: 100vh; } 方案四:简约白色+微妙纹理 /* 替换原来的body背景样式 */ body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); font-family: 'Roboto', sans-serif; min-height: 100vh; } 方案五:日落橙粉渐变 /* 替换原来的body背景样式 */ body { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); font-family: 'Roboto', sans-serif; min-height: 100vh; }
2025-11-26 09:31:51
定时检查脚本运行状态
#!/bin/bash # 定义syncthing的路径 SYNCTHING_PATH="/root/syncthing-linux-amd64/syncthing" # 定义HOME环境变量 export HOME=/root # 检查syncthing是否已经运行 if pgrep -x "syncthing" > /dev/null; then echo "syncthing is already running." else echo "syncthing is not running. Starting syncthing..." nohup $SYNCTHING_PATH -no-browser -logfile /root/syncthing/syncthing.log > /dev/null 2>&1 & echo "syncthing started." fi
2025-11-26 03:05:05
文生图文字LOGO
用中文 “逆袭博客”,生成带有拖墨效果,漂带效果,波普艺术风格的LOGO。
2025-11-25 12:59:56