辰深 published on included in 2023 技术 sudo rm -Rf /Applications/Navicat\ Premium.app sudo rm -Rf /private/var/db/BootCaches/CB6F12B3-2C14-461E-B5A7-A8621B7FF130/app.com.prect.NavicatPremium.playlist sudo rm -Rf ~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/com.prect.NavicatPremium.help sudo rm -Rf ~/Library/Caches/com.apple.helpd/SDMHelpData/Other/zh_CN/HelpSDMIndexFile/com.prect.NavicatPremium.help sudo rm -Rf ~/Library/Preferences/com.prect.NavicatPremium.plist sudo rm -Rf ~/Library/Application\ Support/CrashReporter/Navicat\ Premium_54EDA2E9-528D-5778-A528-BBF9A4CE8BDC.plist sudo rm -Rf ~/Library/Application\ Support/PremiumSoft\ CyberTech
辰深 published on included in 2023 技术 tree结构 docker ├── compose │ ├── db │ └── nginx ├── mysql │ ├── data │ └── my.cnf ├── nginx │ ├── conf.d │ ├── etc │ ├── html │ ├── logs │ ├── nginx.conf │ └── www └
辰深 published on included in 2023 技术 网页版体验 微信小程序体验 如果没有编程基础,可以直接WX扫码使用封装好ChatGPT的小程序体验 1. OpenAI账号注册 OpenAI注册地址需要
辰深 published on included in 2022 技术 场景 macbook升级到macos big sur 11.7.6,git clone、push相关命令突然报错:kex_exchange_identific
辰深 published on included in 2022 技术 cs gocron web&node gocron-web nohup ./gocron-linux-amd64/gocron web > /opt/server/gocron/log/gocron_web.log 2>&1 & gocron-node nohup sudo -u gocron ./gocron-node-linux-amd64/gocron-node > /opt/server/gocron/log/gocron_node.log 2>&1 & cs web vue cd /opt/docker/nginx/html/gin-web/ git pull docker restart nginx cs server gin cd /opt/server/gin-server git pull ps -ax | grep go kill *** nohup go run . >/dev/null 2>&1 & cs cccf-spider cd /opt/server/cccf-spider git pull
辰深 published on included in 2022 技术 备份脚本 #!/bin/sh # 备份存放位置 BACKUP_DIR=/data/backup/pg/ file=$BACKUP_DIR"gin_server_$(date +"%Y%m%d").sql" docker exec -t postgres pg_dump -U pq_user -d db_name > "${file}" # 删除7天之前的备份 deleteDIR=$BACKUP_DIR"gin_server_$(date --date='7 day ago' +%Y%m%d).sql" rm -rf $deleteDIR 恢复数据 正式数据库 cat gin_server_20190801.sql| docker exec -i postgres psql -U pq_user 其他数据库 创建数