Skip to content

Instantly share code, notes, and snippets.

View CN-CODEGOD's full-sized avatar
😃
share my thought

CN-CODEGOD

😃
share my thought
View GitHub Profile
@CN-CODEGOD
CN-CODEGOD / readme.md
Created July 2, 2026 05:13
permit root login

要开启 Linux 服务器的 SSH root 远程登录,需修改 SSH 配置文件 sshd_config。操作步骤如下:1. 编辑配置文件通过命令行输入以下指令打开 SSH 配置文件:sudo nano /etc/ssh/sshd_config (也可使用 vim)2. 开启 root 登录找到 PermitRootLogin 选项,将其修改为:PermitRootLogin yes(注:如果该行前面有 # 注释符,需要删掉它)3. 重启 SSH 服务保存并退出编辑器后,重启 SSH 服务使配置生效:sudo systemctl restart sshd 或 sudo service sshd restart

#创建一个俩G 大小的swap file
sudo fallocate -l 2G /swapfile2
# 添加权限
sudo chmod 600 /swapfile2
#格式化
sudo mkswap /swapfile2
@CN-CODEGOD
CN-CODEGOD / Proxy.md
Created June 24, 2026 09:57
Openclash proxy 认证信息
@CN-CODEGOD
CN-CODEGOD / install.sh
Created June 7, 2026 15:33
install docker on debian
# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
This is probably the best Mouse and Keyboard Recorder on the market.
Works only on PC.
To get it first download Basic Version from JitBit official site:
https://www.jitbit.com/macro-recorder/purchase/
Then register as:
Username: On HAX
Serial key: ENokcYSKQS1XsrhrqKC6j+ieiSJkwolCD9ZBFro59VlmwKz/J4AfCP7+
or
Username: www.onhax.net
@CN-CODEGOD
CN-CODEGOD / remove.sh
Created May 28, 2026 17:30
PVE删除cluster
rm /etc/pve/corosync.conf
# 把/etc/pve/nodes 里的node区别删除
Clean up the cluster configuration:
```bash
rm -rf /etc/corosync/*
ls /etc/pve/nodes #show all nodes data in folders, delete the other nodes folders
rm -rf /etc/pve/nodes/<other_node_name> #just to be sure to delete data of other nodes
```
Reboot, just in case...
@CN-CODEGOD
CN-CODEGOD / setting.json
Created May 27, 2026 04:55
wt RIGHT/MY SHELL setting
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "globalSummon",
"desktop": "any",
@CN-CODEGOD
CN-CODEGOD / mirrorlist.txt
Created May 26, 2026 04:16
ubuntu mirror lists
https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
http://mirrors.aliyun.com/ubuntu/
@CN-CODEGOD
CN-CODEGOD / docker-compose.yml
Created May 23, 2026 10:32
aria2c pro docker-compose file
version: "3.8"
services:
Aria2-Pro:
container_name: aria2-pro
image: p3terx/aria2-pro
environment:
- PUID=65534
- PGID=65534
@CN-CODEGOD
CN-CODEGOD / trackerlist.TXT
Created May 23, 2026 10:20
磁力链接tracker
http://004430.xyz:80/announce,http://0123456789nonexistent.com:80/announce,http://1337.abcvg.info:80/announce,http://207.241.226.111:6969/announce,http://207.241.231.226:6969/announce,http://aboutbeautifulgallopinghorsesinthegreenpasture.online:80/announce,http://bittorrent-tracker.e-n-c-r-y-p-t.net:1337/announce,http://bt1.archive.org:6969/announce,http://bt2.archive.org:6969/announce,http://bvarf.tracker.sh:2086/announce,http://nyaa.tracker.wf:7777/announce,http://retracker.spark-rostov.ru:80/announce,http://seeders-paradise.org:80/announce,http://share.hkg-fansub.info:80/announce.php,http://t.overflow.biz:6969/announce,http://torrent.hificode.in:6969/announce,http://torrentsmd.com:8080/announce,http://tr.highstar.shop:80/announce,http://tr.nyacat.pw:80/announce,http://tracker.bittor.pw:1337/announce,http://tracker.bt4g.com:2095/announce,http://tracker.dhitechnical.com:6969/announce,http://tracker.dler.com:6969/announce,http://tracker.dler.org:6969/announce,http://tracker.mywaifu.best:6969/announce,http://t