Download fonts:
- nerd-fonts
- Sarasa-Gothic (中文)
Installation:
- Run
mkdir -p ~/.local/share/fonts
- Move font files or folders to
~/.local/share/fonts
- Reboot or run
fc-cache -fv
Download fonts:
Installation:
mkdir -p ~/.local/share/fonts
~/.local/share/fonts
fc-cache -fv
ref:
sudo apt install fcitx
sudo apt install -f
.
GTK_IM_MODULE=fcitx
/// @brief String format from OpenCV | |
inline std::string format(const char* fmt, ...) | |
{ | |
std::vector<char> buf(1024); | |
while (true) { | |
va_list va; | |
va_start(va, fmt); | |
int bsize = static_cast<int>(buf.size()); | |
int len = std::vsnprintf(buf.data(), bsize, fmt, va); | |
va_end(va); |
ERR_NVGPUCTRPERM: Permission issue with Performance Counters
NVIDIA has a page that addresses the issue. Unfortunately, the instructions didn't solve the problem for me. However, I found a solution from rameshgunjal in the NVIDIA forums.
You might have noticed that sudo nv-nsight-cu
results in an error. Instead, you have to provide the path: sudo /usr/local/cuda/bin/nv-nsight-cu
. The same applies for other applications as well: sudo /usr/local/cuda/bin/nsight-sys
.
设置别名:
git config --global alias.%ALIAS% %COMMAND%
显示已设置的别名:
git config --get-regexp alias
常用别名:
sudo apt install git
sudo apt install zsh
This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.
apt install flex bison | |
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1 | |
cd WSL2-Linux-Kernel/tools/perf | |
make -j8 | |
sudo cp perf /usr/local/bin |
brew install llvm
ln -s "/usr/local/opt/llvm/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "/usr/local/opt/llvm/bin/clang-tidy" "/usr/local/bin/clang-tidy"
use cmake
file
find_program(CLANG_TIDY_BIN clang-tidy)
find_program(RUN_CLANG_TIDY_BIN /usr/local/Cellar/llvm/10.0.0_3/share/clang/run-clang-tidy.py)
In this article, we will see how to use
CRTP
,std::variant
andstd::visit
to increase our code performances.