avatar

skv Blog

欢迎来到skv的博客🤯

  • 首页
  • 订阅
  • 归档
  • 友链
  • 关于
主页 命令速查
文章

命令速查

发表于 2024-04-11 更新于 11天前
作者 Administrator
10~13 分钟 阅读

pip

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
pip freeze > requirements.txt
pip install -r requirements.txt
python.exe -m pip install --upgrade pip

Git

git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897
git config --global --get http.proxy
git config --global --get https.proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
touch ~/.bashrc
alias git-log='git log --pretty=oneline --all --graph --abbrev-commit'

Conda

conda config --set auto_activate_base false

# 换源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/
conda config --set show_channel_urls yes

MySQL

ALTER USER 'root'@'localhost' IDENTIFIED BY '密码';
use mysql;
update user set authentication_string='' where user='root';
alter user 'root'@'%' identified by '密码';

删除端口占用

netstat -ano|findstr 8000
taskkill -F -PID 4396

Npm

# 设置淘宝源
npm config set registry https://registry.npmmirror.com

# 设置官方源
npm config set registry https://registry.npmjs.org/

# 查看当前源
npm get registry

# 清除缓存
npm cache clean --force

Yarn

# 设置淘宝源
yarn config set registry https://registry.npmmirror.com/

# 设置官方源
yarn config set registry https://registry.yarnpkg.com/

# 查看当前源
yarn config get registry

# 清除缓存
yarn cache clean

Pnpm

# 设置淘宝源
pnpm config set registry https://registry.npmmirror.com/

# 设置官方源
pnpm config set registry https://registry.npmjs.org/

# 查看当前源
pnpm get registry

# 清除缓存
pnpm store prune

默认分类
速查
许可协议:  CC BY 4.0
分享

相关文章

4月 11, 2024

命令速查

pip pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip freeze > re

10月 16, 2025

一些好用的Java第三方库

Commons-io 开发者:Apache 简述:简化文件和流操作的库 <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <dependency> <groupId>commons-io</groupId>

9月 18, 2025

Java命名规范

包 全小写+域名倒置 package com.denox.java_demo.entity; package com.denox.java_demo.util; 类 大驼峰命名法:每个单词首字母大写 class User {} class UserStudent {} 方法 小驼峰命名法:第二个单

下一篇

一些好用的Java第三方库

上一篇

最近更新

  • 命令速查
  • 一些好用的Java第三方库
  • Java命名规范
  • Java学习笔记
  • 张家界学院校园网一键登录

热门标签

前端 Linux 速查 Java 工具 大数据

目录

©2025 skv Blog. 保留部分权利。

使用 Halo 主题 Chirpy