WSL
WSLlist distribution: 1wsl --list set default distribution: 1wsl --set-default <name> list distribution that can be download with powershell(actually others can be download in microsoft store) 1wsl --list --online export virtual OS: 1wsl --export <distrobute name> path/to/store.tar import virtual OS: 1wsl --import <distro name> <path to destination> <path to source> --version 2 delete virtual OS: 1wsl --unregister <distribution name> change default...
labeling
labeling (one possiable)conda create -n labelimg python=3.10 conda activate labelimg pip install PyQt5 pip install pyqt5-tools pip install lxml pip install labelimg labelImg.py .\miniconda\envs\labelimg\Lib\site-packages\labelImg repacle the same file canvas.py .\miniconda\envs\labelimg\Lib\site-packages\libs repacle the same file command lines homepageclick here to come back to command line homepage.
chisel
chiselto generate verilog code… workflow is : 123sudo pacman -S sbt jdk-openjdk verilatorgit clone https://github.com/chipsalliance/chisel-template.git MyChiselProject then we get a directory MyChiselProject. the code write in : MyChiselProject/src/main/scala you can create a folder here, like example, then write code in the example folder. after done, back to the root path of the MyChiselProject , run : 12sbt "runMain example.Elaborate"(if your chisel file is named...
cmake
cmakewindows: 1234567cmake -G “MinGW Makefiles” // mingw32-makecmake -G Ninja // ninjacmake -G “Unix Makefiles” // clangcmake -G "MinGW Makefiles" -S .. -B . -DCMAKE_C_COMPILER=<path to gcc.exe> -DCMAKE_CXX_COMPILER=<path to g++.exe> command lines homepageclick here to come back to command line homepage.
conda
condacreate and delete env: 123conda create -n <envname> python=3.10conda remove --name <envname> --all do not auto-use base: 1conda config --set auto_activate_base false enter/quit env: 1conda activate <envname> / deactivate env package: 12345(pip install conda-pack)conda package -n <envname>tar -xzvf <envname>.tar.gz -C path/to/store.tar.gz export/import(in env): 123conda env export > environment.ymlconda env create -f environment.yml also...
disk
diskon windows : 123456diskpartlist diskselect disk xcleandiskmgmt.msc command lines homepageclick here to come back to command line homepage.
docker
dockernormally use NVIDIA DRIVER modify saving mirrorlists command lines homepageclick here to come back to command line homepage.
git
gitget ssh key: 1234567ssh-keygen -t rsa -C "[xxx@xxx.com](mailto:xxx@xxx.com)"<enter until ...>cd ~/.sshcat id_rsa.pub git initialize: 123git config --global user.name "username"git config --global user.email "<email>" for proxy: 123456789git config --global http.proxy http://127.0.0.1:7897git config --global https.proxy http://127.0.0.1:7897# and we can test with:git config --global --get http.proxygit config --global --get https.proxy firewall...
lists
liststo export your requirements as a txt. 12345678910pacman -Qqe > pacman_installed.txtyay -Qqe > yay_installed.txt//reusme// sudo pacman -S --needed - < pacman_installed.txt// yay -S --needed - < yay_installed.txtpip3 freeze > pip_installed.txt// resume : pip3 install -r pip_installed.txt command lines homepageclick here to come back to command line homepage.
xmake
xmakeprotal:https://xmake.io/#/zh-cn/ command lines homepageclick here to come back to command line homepage.





