11 2022 档案
摘要:git config --global diff.tool vimdiff git config --global difftool.prompt false git config --global alias.d difftool git config --global difftool.trus
阅读全文
摘要:https://github.com/rime/home/wiki/RimeWithIBus 1.安装 sudo apt-get install ibus-rime # 五筆86、袖珍簡化字拼音、五筆畫 sudo apt-get install librime-data-wubi librime-d
阅读全文
摘要:#include <iostream> #include <string_view> template<typename T> struct TypeName { constexpr static std::string_view fullname_intern() { #if defined(__
阅读全文
摘要:有时在ubuntu下,用vim编辑了半天文本发现没有权限保存,这时可以用这种方式强制保存 :w !sudo tee % w保存 !执行外部命令 tee 写入到文件 % vim中的变量,当前文件地址,一般是
阅读全文
摘要:在进入gdb后,直接使用attach ID,出现下面的情况: Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/y
阅读全文
摘要:LIBRARY_PATH 编译时链接 LD_LIBRARY_PATH 运行时链接 LD_LIBRARY_PATH="/home/xx/lib/zlib/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" LD_LIBRARY_PATH="/home/xx/lib/gl
阅读全文
摘要:#include <iostream> template<class derived> struct base { derived getDerivedType(){}; void interface(){ static_cast<derived*>(this)->interface();}; };
阅读全文