Skip to main content

常用命令

git log --since="2025-05-13 00:00" --until="2025-05-23 23:59" --pretty=format:"%s" --date=short

生成密钥

ssh-keygen -t rsa  -C "ning.huang.ridson@gmail.com"

配置代理(Windows)





set https_proxy=http://172.17.120.142:7890

set https_proxy=http://127.0.0.1:7890

set GEMINI_API_KEY=AIzaSyBxSUnkDCPPuA7O5Y1Hq9bRww4QfIBdt4g

(Linux)


# proxy
proxy () {
export http_proxy="<http://172.17.120.45:7890>"
export https_proxy=$http_proxy
echo "HTTP Proxy on"
}

# noproxy
noproxy () {
unset http_proxy
unset https_proxy
echo "HTTP Proxy off"
}

proxy

安装NVM

curl -o- <https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh> | bash

curl -o- <https://gitee.com/RubyMetric/nvm-cn/raw/main/install.sh> | bash

设置国内源

pnpm config set registry <https://registry.npmmirror.com>

python -m pip install --upgrade pip
pip config set global.index-url <https://pypi.tuna.tsinghua.edu.cn/simple>