Skip to content

dongmingsun/cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

macOS

brew

brew info <formula>

brew switch <formula> <version>

c++

std/stl

std::boolalpha

OpenCV

type2str

python

conda

conda info --envs

conda env remove -n <environment>

decompress

tar.gz

tar -xvzf <file>

tar.xz

tar -xf file.tar.xz

find and delete

find . -name "filename" -exec rm {} \;

opencv

cc/opencv.cc: string type2str(int type)

Read in an OpenCV image type and return a human-readable string representing.

Ubuntu

Switch left_ctrl and left_alt:

apt-get install dconf-tools
dconf write "/org/gnome/desktop/input-sources/xkb-options" "['ctrl:swap_lalt_lctl','ctrl:swap_ralt_rctl']"

Application.desktop directory

/usr/share/applications/

Set dynamic libraries/shared libraries path

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<additional_path>

Decompress tar.gz

tar -xvzf <file_name.tar.gz>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages