avatar

skv Blog

欢迎来到skv的博客🤯

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

命令速查

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

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 config unset global.index-url
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:7890
git config --global https.proxy http://127.0.0.1:7890
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 --remove-key channels

# 换源
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes
conda config --show channels

MySQL

ALTER USER 'root'@'localhost' IDENTIFIED BY '密码';
FLUSH PRIVILEGES;
use mysql;
update user set authentication_string='' where user='root';
alter user 'root'@'%' identified by '密码';
FLUSH PRIVILEGES;
CREATE DATABASE IF NOT EXISTS `database_name` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `database_name`;

KillPort

netstat -ano|findstr 8000
taskkill -F -PID 4396
lsof -i:8000
kill -9 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 config unse

6月 14, 2024

flex布局笔记

先看默认布局,子元素位置在父元素的左上角,上下排布 flex布局,只需在父元素设置display: flex;剩下的就是编写布局规则了 排列方向 flex-direction row(默认) 从左往

4月 14, 2024

MySQL速查

数据库 增 create database db_name; 删 drop database db_name; 改 use db_name; 查 show database; show create database db_name;

下一篇

flex布局笔记

上一篇

最近更新

  • 命令速查
  • flex布局笔记
  • MySQL速查
  • 爬虫笔记速查
  • Arch 安装指南

热门标签

前端 Linux 速查 Java 工具 大数据

目录

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

使用 Halo 主题 Chirpy