ggll
shell tips
1### vps测试脚本
2curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh
1#!/bin/bash
2## gitarch.sh
3cd /home/bbq/gitdir/kz
4git pull
5git archive --format=zip --output=/home/bbq/bkdir/kz_$(date +%Y%m%d-%H%M%S).zip HEAD
1#!/bin/bash
2# rmbakfile.sh
3TARGET_DIR="/home/bbq/gitdir/"
4DAYS=7
5
6echo "The following files will be deleted:"
7find "$TARGET_DIR" -type f -mtime +$DAYS -print
8
9find "$TARGET_DIR" -type f -mtime +$DAYS -exec rm -f {} \;
10
11# delete empty dir
12# find "$TARGET_DIR" -type d -empty -delete
1#!/bin/bash
2# scp2tk.sh
3scp -v -C -r /home/bbq/bkdir/*.zip root@tk:/root/bakdir/
1# crontab
2# m h dom mon dow command
32 3 * * * /bin/bash /home/bbq/gitarch.sh >/tmp/gitarch.log 2>&1
45 4 * * * /bin/bash /home/bbq/scp2tk.sh >/tmp/scp2tk.log 2>&1
56 5 * * * /bin/bash /home/bbq/rmbakfile.sh >/tmp/rmbakfile.log 2>&1
hysteria2
https://github.com/apernet/hysteria
- hysteria-linux-amd64
- hysteria-linux-arm
- hysteria-linux-arm64
- hysteria-windows-amd64.exe
- NekoBox-1.3.9-arm64-v8a.apk
1## config.yaml
2server: server.com:443
3auth: ldfsgf342dfgbsdf43
4bandwidth:
5 up: 50 mbps
6 down: 100 mbps
7socks5:
8 listen: 127.0.0.1:10801
9http:
10 listen: 127.0.0.1:20801
11tls:
12 insecure: true
Windows Server 2025 KMS激活
以数据中心版为例,标准版更换下表中 Windows Server 2025 Standard版本密钥
右击开始图标,以管理员身份运行终端,执行以下命令:
slmgr -ipk D764K-2NDRG-47T6Q-P8T8W-YP6DF
slmgr -skms kms.0t.net.cn
slmgr -ato
其他版本KMS密钥:
Operating system edition KMS Client Product Key
- Windows Server 2025 Standard TVRH6-WHNXV-R9WG3-9XRFY-MY832
- Windows Server 2025 Datacenter D764K-2NDRG-47T6Q-P8T8W-YP6DF
- Windows Server 2025 Datacenter: Azure Edition XGN3F-F394H-FD2MY-PP6FD-8MCRC
2025 数据中心版本使用这个
DISM /online /Set-Edition:ServerDatacenter /ProductKey:D764K-2NDRG-47T6Q-P8T8W-YP6DF /AcceptEula