v2ray 常用命令

1. 检查当前使用的配置文件的位置 systemctl status v2ray 参考: https://github.com/Jrohy/multi-v2ray/issues/406

cmake 学习笔记

1. cmake 文件中的库具体路径是什么? 比如说 ${CURL_INCLUDE_DIR}。 这个其实是 /usr/share/cmake-3.10/Modules/ 下面的 FindXXX.cmake 去寻找相应的具体目录,可以通过命令查看,当前的cmake 支持哪些库的寻找。 ll -t...

grep 命令使用

排除某些文件夹 grep -rl 'search' ./ --exclude-dir={\environments,\cache} --exclude=*.{bak~,bak} 参考: https://blog.csdn.net/Liuboxx1/article/details/8533032...

mdk5 输出 bin 和 asm 文件

工程的配置中, user 的选项卡,after build/rebuild 的两条命令可以设置为 fromelf --text -c -o "$L@L.asm" "#L" fromelf --bin -o "$L@L.bin" "#L"

git 生成 ssh key

git 生成 ssh key,执行下面代码即可: git config --global --list git config --global user.name "这里换上你的用户名" git config --global user.email "这里换上你的邮箱" ssh-keyg...

cmake 出现大量的警告 deprecated-declarations

只需要修改 CMakeLists.txt,增加下面的属性即可。 set(CMAKE_CXX_FLAGS "-Wno-error=deprecated-declarations -Wno-deprecated-declarations ")

ubuntu 使用 docker

今天先参照 https://www.jianshu.com/p/ddf7c0153644 这个里面的说明写了相应的配置文件,结果一启动容器就报错了。 Creating docker-test_mysql_1 ... Creating docker-test_mysql_1 ... error...

ubuntu 安装 docker

没有安装过 docker 的 ubuntu 安装 docker的步骤: $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ ...

ubuntu dos2unix

ubuntu 下没有 dos2unix,但是又类似的工具,tofrodos, 安装这个工具,使用两个命令: todos, fromdos 即可。 参考: https://www.jianshu.com/p/d5eb279de997

ssh 图形界面

想要 ssh 到服务器上的特定用户,并使用含 x 的程序,比如说 gitk。 ssh -X user@192.168.0.2 参考: https://blog.csdn.net/fdd096030079/article/details/80986266 https://blog.csdn.ne...