操作系统35

macos禁用独显

sudo pmset -a GPUSwitch 0 # 强制使用核显 sudo pmset -a GPUSwitch 1 # 强制使用独显 sudo pmset -a GPUSwitch 2 ...

WSL(Windows Subsystem for Linux)配置

1. 控制面板->程序->启用或关闭Windows功能,将“适用于Linux的Windows子系统” 2.重启电脑 3.打开Windows应用商店,搜索“WSL”,下 ...

pip换国内源

一、临时使用 可以在使用pip的时候在后面加上-i参数,指定pip源,例如 pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn ...

pip的安装

可以通过以下命令来判断是否已安装: pip –version 如果还未安装,则可以使用以下方法来安装: curl https://bootstrap.pypa.io/get-pi ...

vim批量注释与反注释插件——NERD_commenter

这是对程序员非常实用的一款插件,支持多种语言的补全,还支持单行注释,批量注释,等各种命令映射。 1.使用方法,先下载该插件:http://www.vim.org/scripts/script. ...

macos通过brew安装python2

原文地址:https://stackoverflow.com/questions/60298514/brew-reinstalling-python2 起因:在mac上想安装pytho ...

通过python上传文件到百度网盘——bypy

bypy项目地址: https://github.com/houtianze/bypy 主机:centos7.5 python环境:2.7 1.首先安装pip yum ...

MacOS在Finder顶部显示当前目录的完整路径

Finder 默认的标题栏只显示当前目录的名字,可以打开终端,复制粘贴以下命令: defaults write com.apple.finder _FXShowPosixPathInTitle ...

查看端口占用、查看进程

linux: 查看9090端口: netstat -antup | grep 9090 查看30658进程: ps aux | grep 30658 mac ...