Posts

  • 使用 crontab + rsync 自动备份到备用硬盘

    script #!/bin/bash # https://rsync.samba.org/ # https://rsync.samba.org/examples.html # cron # sudo crontab -e # 0 0 * * * sudo /path/to/backup.sh >> /var/log/cron.log 2>&1 BACKUP_DIR=/home/ DST_DIR=/media/debian/device/home/ if ...
  • install golang

    https://golang.google.cn/doc/install script cd /usr/local/src wget https://golang.google.cn/dl/go1.16.linux-amd64.tar.gz tar -zxvf go1.16.linux-amd64.tar.gz -C /usr/local/ cd /usr/local mv go go1.16.linux-amd64 ln -s go1.16.linux-amd64 go cat &...
  • Prometueus 监控

    公网服务器 frontend backend monitoring grafana: :3000 prometheus: 9090 pushgateway: 0.0.0.0:9091 node-exporter: :9100 alertmanager: :9093 内网服务器 frontend backend node-exporer: :9100 node-exporter-pusher: prometueus 创建 TLS 证书 Pro...
  • One API 通过标准的 OpenAI API 格式访问所有的大模型

    One API: https://github.com/songquanpeng/one-api docker run --name one-api -d --restart always \ --log-opt max-size=1g \ -e SQL_DSN='oneapi:123456@tcp(mysql:3306)/oneapi' \ -e TZ=Asia/Shanghai \ -e TIKTOKEN_CACHE_DIR=/data/cache \...
  • 使用 ChatGPT Next Web 部署私人 ChatGPT 网页应用

    ChatGPT Next Web: https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web docker run --name chatgpt-next-web -d --restart=always \ --log-opt max-size=1g \ --net frontend \ yidadaa/chatgpt-next-web:v2.16.0 端口 -p 3000:3000 \ 代理: ...
  • MacOS 如何查看硬盘健康度

    安装 下载 smartmontools https://www.smartmontools.org/wiki/Download 直接下载dmg 或者编译 tar -zxvf smartmontools-7.4.tar.gz cd smartmontools-7.4 ./configure make 使用 查看硬盘 diskutil list 查看硬盘状态 ./smartctl -a disk0
  • 训练 wav2lip

    环境 GPU: Nvidia H800 * 1 CPU: 120 c Memory: 80G start command: workspace=/gemini/code/Wav2Lip cd $workspace source /venv/bin/python python wav2lip_train.py --data_root lrs2_preprocessed/ --checkpoint_dir wav2lip_checkpoints --syncnet_che...
  • 使用 Roop 一键换脸

    Install python3 -m venv .venv source .venv/bin/activate git clone https://github.com/s0md3v/roop cd roop pip install -i https://mirrors.aliyun.com/pypi/simple/ tb-nightly pip install -r requirements.txt python run.py --execution-provider cuda
  • mysql 数据库字段加密

    CREATE DATABASE `encrypt_test` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE TABLE `users` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `mobile` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL D...
  • ER-NeRF 用于高保真谈话人像合成的高效区域感知神经辐射场

    Install dependency 安装依赖 git clone https://github.com/Fictionarry/ER-NeRF.git git clone https://github.com/YudongGuo/AD-NeRF.git git clone https://github.com/facebookresearch/pytorch3d.git cd ER-NeRF python3 -m venv .venv source .venv/bin/activa...