1. nvm

任意快速切换nodejs

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

2. github

# 启用代理
git config --global http.proxy http://172.31.0.1:7890
git config --global https.proxy http://172.31.0.1:7890
# 验证
git config --global --get http.proxy
# 只代理github
git config --global http.https://github.com.proxy http://172.31.0.1:7890
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

x. window 杀端口

kill.bat

F:\>kill 8080

Killing PID 31924 on port 8080 ...

SUCCESS: The process with PID 31924 has been terminated.

Done.

@echo off
set PORT=%1

if "%PORT%"=="" (
    echo Usage: kill 8080
    exit /b
)

for /f "tokens=5" %%a in ('netstat -ano ^| findstr :%PORT%') do (
    set PID=%%a
)

if not defined PID (
    echo No process found on port %PORT%
    exit /b
)

echo Killing PID %PID% on port %PORT% ...
taskkill /F /PID %PID%

echo Done.

x. 快速切换python

https://pyenv.uihtm.com/

https://github.com/pyenv-win/pyenv-win