logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

python3 uvicorn 是啥?

它是一个 Python 的 ASGI Web 服务器,常用来运行 FastAPI、Starlette 这类异步 Web 应用。一句话:Uvicorn 就是用来把 FastAPI 这种 Python Web 应用跑起来的服务器。用 uvicorn 启动 app/main.py 里的 app 对象,让服务可以被外部访问,不只是本机访问。监听所有网卡地址 0.0.0.0,启动 Uvicorn 服务器。服

#python
python3 uvicorn 是啥?

它是一个 Python 的 ASGI Web 服务器,常用来运行 FastAPI、Starlette 这类异步 Web 应用。一句话:Uvicorn 就是用来把 FastAPI 这种 Python Web 应用跑起来的服务器。用 uvicorn 启动 app/main.py 里的 app 对象,让服务可以被外部访问,不只是本机访问。监听所有网卡地址 0.0.0.0,启动 Uvicorn 服务器。服

#python
vscode copilot 导入导出对话记录

ctrl + shift + P,选 Chat: Import chat,选择 chat.json 的路径。ctrl + shift + P,选 Chat: Export chat,导出为 chat.json。保存好 chat.json。

#vscode#copilot#ide
vscode 很难删除 copilot,如何关闭 copilot 功能?

ctrl + shift + P 打开 settings UI,搜索 Disable AI Feature …

#vscode#copilot#ide
git 对比两个极度相似的 repo 的 git diff

使用 git remote add other <另一个仓库的路径>再 git diff other/main。然后 git fetch other。

#git
vscode 很难删除 copilot,如何关闭 copilot 功能?

ctrl + shift + P 打开 settings UI,搜索 Disable AI Feature …

#vscode#copilot#ide
vscode copilot 导入导出对话记录

ctrl + shift + P,选 Chat: Import chat,选择 chat.json 的路径。ctrl + shift + P,选 Chat: Export chat,导出为 chat.json。保存好 chat.json。

#vscode#copilot#ide
vscode copilot 导入导出对话记录

ctrl + shift + P,选 Chat: Import chat,选择 chat.json 的路径。ctrl + shift + P,选 Chat: Export chat,导出为 chat.json。保存好 chat.json。

#vscode#copilot#ide
github 配置 ssh key ssh-key

复制到 github -> Settings -> SSH and GPG keys -> New SSH。

#github#ssh#运维
git rebase 合并分支,保持 git history 记录线性、干净、清晰 merge 代替

git merge 确实可能导致 Git 历史变得复杂。需要解决冲突多次(如果冲突较多)重写历史,不适合已推送的分支。

#git
    共 63 条
  • 1
  • 2
  • 3
  • 7
  • 请选择