
工具使用笔记
fengyun_w
这个作者很懒,什么都没留下…
展开
-
git 只同步分支的某些文件
文件和远程的 main 分支的 test.cpp 文件同步,保持一致。原创 2023-08-28 22:41:41 · 636 阅读 · 0 评论 -
fatal: No url found for submodule path ‘xxx‘ in .gitmodule
执行 git submodule update 更新三方库的时候报错:fatal: No url found for submodule path 'xxx' in .gitmodule解决:git rm --cached xxx.原创 2022-05-31 20:58:19 · 2826 阅读 · 3 评论 -
curl_easy_cleanup() 崩溃的一种情况
curl_easy_cleanup() 崩溃的一种情况原创 2021-12-23 22:07:18 · 1481 阅读 · 1 评论 -
valgrind 3.14 在arm 64 上的报错
Note: see also the FAQ in the source distribution.It contains workarounds to several common problems.In particular, if Valgrind aborted or crashed afteridentifying problems in your program, there's a good chancethat fixing those problems will prevent .原创 2021-10-27 18:36:38 · 1195 阅读 · 0 评论 -
vscode 添加文件头header和函数注释
说明很多同学说需要下载一些插件才可以,其实并不需要,只需要在设置中设置 fileheader.customMade 和 fileheader.cursorMode 就可以了。一下是mac 环境,快捷键因系统不同有差异。fileheader.customMade (control + command + i) 设置文件的headerfileheader.cursorMode (control + command + t) 设置函数的注释头例子{ ...原创 2021-10-08 21:57:48 · 4903 阅读 · 0 评论 -
win10 设置两个静态ip
本例中设置成192.168.1.* 和 192.168.2.*设置的静态ip不要和其他人冲突,造成无法上网。点击顺序:状态栏网络图标网络和internet设置更改网络适配器选项右击WLAN图标,点击属性internet协议版本4(tcp/ipv4),点击属性添加两个静态ip,那就意味着你必须知道这两个网段是可用的,默认网关,首选DNS服务器ip一定要设置好。这只是添加了一个,接着点击高级,添加第二个网段。设置完成。...原创 2021-03-30 11:13:10 · 4114 阅读 · 0 评论 -
vim 简单配置
""""""""""""""""""""""""""""""""""""""=>全局配置<="""""""""""""""""""""""""""""""""""""""关闭vi兼容模式"set nocompatible"设置历史记录步数"set history=1000"开启相关插件""侦测文件类型"filetype on"载入文件类型插件"filetype plugin on"为特定文件类型载入相关缩进文件"filetype indent on"当文件在外.原创 2020-11-21 20:40:31 · 217 阅读 · 0 评论 -
windows下使用nc 命令,探测udp端口是否连通
1.首先在windows下安装 nc 命令,在cmd中运行。 链接:https://eternallybored.org/misc/netcat/链接:https://eternallybored.org/misc/netcat/2.在解压缩的文件中,找到 nc.exe ,把他复制到 C:\Users\lao_ding\nc.exe 路径下,就能在cmd中运行3.探测 udp 端口:服务端:nc -l -u -p 6000客户端:nc -u 192.168.1.12 6000.原创 2020-09-21 16:55:46 · 11251 阅读 · 0 评论 -
win10 系统网络图标只剩下飞行模式,没有wifi和本地连接 解决方法
1. 在搜索框输入 msconfig ;2.打开这个应用;3.取消第三个选项,选择第一个,然后重启电脑;原创 2020-09-18 20:12:06 · 23174 阅读 · 19 评论 -
ubuntu14下mysql忘记密码的解决方法
参考博客:https://blog.youkuaiyun.com/ubuntu64fan/article/details/49795885ubuntu14.04忘记了mysql的用户(root)的密码。接下来:使用mysqld_safe重置密码,mysqld_safe相当于mysqld的管理程序,守护进程。1) 停止mysql服务$ sudo stop mysql2) 启动mysqld_...原创 2020-03-19 17:11:54 · 226 阅读 · 0 评论 -
curl: symbol lookup error: curl: undefined symbol: curl_mime_free 解决方法
其实就是更新一下版本就可以了。下载curl包(可以在这个网站上找最新的版本 http://curl.haxx.se/download/)wget https://curl.haxx.se/download/curl-7.55.1.tar.gztar -xzvf curl-7.55.1.tar.gzcd curl-7.55.1 ./configure make mak...原创 2019-12-26 01:11:59 · 11284 阅读 · 2 评论 -
ubuntu 14.04 与 CentOS 升级GCC/G++至5版本,linux 报错E: Unable To Locate Package Software-properties-common
# 支持 ubuntu 14.04add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get updateapt-get install gcc-5 g++5 ln -s /usr/bin/gcc-5 /usr/bin/gcc -fln -s /usr/bin/gcc-ar-5 /usr/bin/gcc-ar -f...原创 2019-12-20 15:52:56 · 902 阅读 · 0 评论 -
ubuntu 安装 tcmalloc 或者E: Unable to locate package google-perftools
执行命令:sudo apt-get install google-perftools//如果报错在/usr/bin下找不到,建立一个软连接ln -s libtcmalloc.so.4 libtcmalloc.so在CMakeList.txt中直接链接:target_link_libraries(${SERVER_APP_NAME} -ltcmalloc)如果报错:E: ...原创 2019-11-20 19:53:32 · 5154 阅读 · 0 评论 -
libsqlite3.a(sqlite3.o): In function `unixDlError':sqlite3.c:36659: undefined reference to `dlerror'
出错如下:libsqlite3.a(sqlite3.o): In function `unixDlError':sqlite3.c:36659: undefined reference to `dlerror'解决:-ldl 的顺序和-lsqlite的顺序换一下,就ok了。原创 2019-10-13 19:54:38 · 1047 阅读 · 0 评论 -
克隆虚拟机无法显示ip,不能上网的问题
当我们克隆别人的虚拟机系统的时候会出现使用ifconfig命令无法显示ip的问题解决如下:首先你得确认是否某个管家软件关掉了虚拟服务,有可能你加速的时候,默认勾选了这个,被关掉了,那么就会出现问题。如图:有一个vmware虚拟服务,不要关掉。如果确认没有关掉,试试下面:(1)systemctl stop NetworkManager systemctl disa...原创 2019-03-25 13:37:30 · 741 阅读 · 0 评论 -
Source Insight 3解决中文乱码,破解版
链接:https://pan.baidu.com/s/1yCx9oy8uaZx-lP6EiqasvA提取码:uuq1亲测有效,解决中文乱码。原创 2019-04-19 19:10:47 · 1959 阅读 · 0 评论 -
error LNK1104: 无法打开文件“libboost_date_time-vc120-mt-sgd-1_64.lib”
在vs中配置boost库要注意的点:1:版本要匹配,例如:vs2013 对应的vc12 vs2015对应的vc14.VS版本 vc版本Visual Studio 6 vc6Visual Studio 2003 vc7Visual Studio 2005 vc8Visual Studio 2008 vc9Visua...原创 2019-07-10 16:29:04 · 1656 阅读 · 3 评论 -
vs2013 update5离线升级包下载地址
链接:https://pan.baidu.com/s/1Puh-aCmjsbf1TAjgejuwbA提取码:fpqg安装过程时间稍微久一点。原创 2019-07-15 17:44:29 · 3542 阅读 · 6 评论 -
xshell 使用rz传输大文件失败解决
使用:rz -beb:以二进制方式,默认为文本方式e:对所有控制字符转义有可能windows的文件带有一些特殊字符,编码方式不同,导致传输失败。所以使用rz -be 可以解决。...原创 2019-08-28 18:00:22 · 4761 阅读 · 0 评论 -
error while loading shared libraries: libboost_thread.so.1.69.0: cannot open shared object file: No
原因是自己链接的库再系统路径下找不到。解决:export LD_LIBRARY_PATH=/home/maomao/boost/lib/:$LD_LIBRARY_PATH指定路径。原创 2019-08-30 16:08:53 · 961 阅读 · 0 评论 -
fatal: unable to access 'https://github.com/janneku/cppjson.git/': error setting certificate verify
在git clone遇到的问题:fatal: unable to access 'https://github.com/janneku/cppjson.git/': error setting certificate verify locations:解决:将url中的https改成git即可。这与你在配置git时候的.git文件中的config文件有关。...原创 2018-06-23 10:52:30 · 2449 阅读 · 0 评论