摘要: # 2. 查看公钥 cat ~/.ssh/id_ed25519.pub git设置key 就可以推送了 拉取添加key 就可以拉取了 不然私有包 拉取不下来 阅读全文
posted @ 2025-12-12 17:25 窦戈 阅读(9) 评论(0) 推荐(0)
摘要: 开启了内网穿透 只使用密钥免登录 //查看密钥 可能生成过用于github cat ~/.ssh/id_ed25519.pub 关闭密码访问 sudo nano /etc/ssh/sshd_config.d/100-macos.conf 设为no 就不可密码访问 yes 密码访问 UsePAM ye 阅读全文
posted @ 2025-12-12 16:58 窦戈 阅读(5) 评论(0) 推荐(0)
摘要: # 1. 生成 SSH 密钥 ssh-keygen -t ed25519 -C "your_email@example.com" # 一路回车即可 # 2. 查看公钥 cat ~/.ssh/id_ed25519.pub # 复制输出的内容 # 3. 添加到 GitHub # 访问 https://g 阅读全文
posted @ 2025-12-12 10:36 窦戈 阅读(1) 评论(0) 推荐(0)
摘要: Nginx 限流测试完全指南 一、快速开始 1. Nginx 配置(http 块) http { set_real_ip_from 100.127.0.0/16; # 腾讯云 CLB 实际使用的网段 set_real_ip_from 10.206.0.0/24; # 保留原有的(如果有用) real 阅读全文
posted @ 2025-11-29 14:54 窦戈 阅读(2) 评论(0) 推荐(0)
摘要: wget https://gh-proxy.com/https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz tar -xzf uv-x86_64-unknown-linux 阅读全文
posted @ 2025-11-19 16:36 窦戈 阅读(7) 评论(0) 推荐(0)
摘要: 第1层: 各模块定义路由 ↓ 第2层: v1/router.py 聚合路由 ↓ 第3层: main.py 注册到应用 第1层:定义路由 # app/v1/admin/users.py from fastapi import APIRouter router = APIRouter() # ← 创建路 阅读全文
posted @ 2025-11-18 11:35 窦戈 阅读(10) 评论(0) 推荐(0)
摘要: python3.9为系统自带的 pip3 pip 对应的是uv 3.13 系统配置了pip路径 也设置了软连接 所有是pip ls -la /Users/peter/.local/bin/ | grep pip 查看软连接 uv python包管理器 uv python list 查看安装的pyth 阅读全文
posted @ 2025-11-17 21:08 窦戈 阅读(10) 评论(0) 推荐(0)
摘要: # FastAPI Test Project ## 项目简介 这是一个使用 FastAPI 框架的测试项目。 ## 技术栈 - Python >= 3.13 - FastAPI >= 0.121.2 - Uvicorn >= 0.38.0 - uv (包管理工具) ## 环境配置 ### 虚拟环境说 阅读全文
posted @ 2025-11-17 21:06 窦戈 阅读(13) 评论(0) 推荐(0)
摘要: # 安装 UV brew install uv uv python包管理器 uv python list 查看安装的python uv python install 3.13 安装3.13版本 创建mcp_server目录 cd mcp_server uv init . -p 3.13 uv add 阅读全文
posted @ 2025-08-22 17:37 窦戈 阅读(10) 评论(0) 推荐(0)
摘要: 以超级用户身份连接 ./psql -U postgres -d dotest -- 授予 public 模式的所有权限 GRANT ALL ON SCHEMA public TO dotest; -- 授予在 public 模式中创建对象的权限 GRANT CREATE ON SCHEMA publ 阅读全文
posted @ 2025-04-02 06:45 窦戈 阅读(70) 评论(0) 推荐(0)