开发配置
jdk-8
JAVA_HOME:
- C:\Program Files\Java\jdk1.8
Path:
- %JAVA_HOME%\bin\
- %JAVA_HOME%\jre\bin\
ClassPath:
- .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
jdk-17
JAVA_HOME:
- C:\Program Files\Java\jdk17
yarn
yarn config get registry # 查看当前设置的镜像源地址
yarn config set registry 'https://registry.npm.taobao.org'
yarn global list --depth=0 # 查看全局安装情况
yarn cache clean # 清除全局缓存
npm list -g --depth=0 # 查看全局安装情况
npm cache clean --force # 清除全局缓存
nvm node_mirror https://npm.taobao.org/mirrors/node/
nvm npm_mirror https://npm.taobao.org/mirrors/npm/
nvm install [version]
nvm use [version]
yarn global add nrm
python
$HOME/pip/pip.ini
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
alias python='winpty python' # 配置git bash别名
pip freeze | xargs pip uninstall -y # uninstall global packages
go
go env -w GOPROXY=https://goproxy.cn/,direct
go env -w GOSUMDB=off # 内网下关闭
rust
$HOME/cargo/config
[source.crates-io]
replace-with = 'tuna'
[source.tuna]
registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
[net]
git-fetch-with-cli = true
git
git config --global http.proxy http://127.0.0.1:1081 #设置http代理
git config --global https.proxy https://127.0.0.1:1081 #设置https代理
git config --global http.proxy 'socks5://127.0.0.1:1081' #设置socks代理
git config --global https.proxy 'socks5://127.0.0.1:1081' #设置socks代理
git config --global core.autocrlf false #去除warning:LF will be replaced by CRLF警告
git rm -r --cached . #忽略文件不生效时使用并再次提交即可
git config --global user.name "<name>" #配置用户名
git config --global user.email "<email>" #配置邮箱
git config --system core.longpaths true # 允许长文件名
git checkout -b test <name of remote>/test # 创建本地分支并切换到远程分支
git daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack # 开启局域网访问 需cd到git工程根目录
git rev-list --all | xargs -rL1 git ls-tree -r --long | awk '{ size=$4/1024/1024; if (size >= 80) {print size" "$0}}' # 查找历史记录的文件大小大于80MB
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch ${filepath}' --prune-empty -- --all # 删除指定文件所有历史记录
maven
$HOME/.m2/setting.xml
<localRepository>D:\Applications\apache-maven-3.5.4\maven-repository</localRepository>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
windows
# win+r: gpedit.msc
# Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem
# Enable NTFS long paths