2024年3月28日

摘要: 采用ie浏览器打开DownGit,不用google https://minhaskamal.github.io/DownGit/#/home 阅读全文
posted @ 2024-03-28 16:37 tycoon3 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 子模块的添加添加子模块非常简单,命令如下: git submodule add <url> <path> 其中,url为子模块的路径,path为该子模块存储的目录路径。 执行成功后,git status会看到项目中修改了.gitmodules,并增加了一个新文件(为刚刚添加的路径) git diff 阅读全文
posted @ 2024-03-28 15:29 tycoon3 阅读(1) 评论(0) 推荐(0) 编辑

2023年11月23日

摘要: 添加 if(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int))<0) { perror("setsockopt() reuse"); goto err1; } 添加SO_REUSEADDR之后 connect(): Can 阅读全文
posted @ 2023-11-23 09:53 tycoon3 阅读(10) 评论(0) 推荐(0) 编辑

2023年11月15日

摘要: [root@centos7 dpdk-19.11]# ip n | grep 'fe80::4a57:2ff:fe64:e7ae' fe80::4a57:2ff:fe64:e7ae dev enp5s0 FAILED [root@centos7 dpdk-19.11]# ping6 fe80::4a 阅读全文
posted @ 2023-11-15 15:53 tycoon3 阅读(26) 评论(0) 推荐(0) 编辑

2023年11月14日

摘要: 1.unindent does not match any outer indentation level 原因是文件中包含了tab和空格的混合解决方法:全部使用空格。将 tabstop 和 shiftwidth 设置成相同的值,如 4,并设置 expandtab。这样新增的缩进会用空格,你按下 t 阅读全文
posted @ 2023-11-14 09:54 tycoon3 阅读(10) 评论(0) 推荐(0) 编辑
摘要: sysctl -a | grep ipv6 | grep disable net.ipv6.conf.enahisic2i0.disable_ipv6 = 0net.ipv6.conf.enahisic2i0.disable_policy = 0net.ipv6.conf.enahisic2i1.d 阅读全文
posted @ 2023-11-14 09:53 tycoon3 阅读(12) 评论(0) 推荐(0) 编辑

2023年10月14日

摘要: 可以使用gcc提供的内置函数__atomic_load_n()来原子地一次性读取多个变量的值。该函数使用了GCC内置的原子操作,可以保证在不被中断的情况下完成读取。 以下是一个示例代码,读取三个整数变量a、b和c的值: #include <stdio.h> #include <stdatomic.h 阅读全文
posted @ 2023-10-14 11:44 tycoon3 阅读(491) 评论(0) 推荐(0) 编辑

2023年10月9日

摘要: 解决 使用Git LFS 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。 新开一个bash命令行输入git lfs install安装 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个. 阅读全文
posted @ 2023-10-09 11:53 tycoon3 阅读(296) 评论(0) 推荐(0) 编辑

2023年10月8日

摘要: interrupt cpu个数: 254 ``` lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits 阅读全文
posted @ 2023-10-08 19:51 tycoon3 阅读(18) 评论(0) 推荐(0) 编辑

2023年5月31日

摘要: [root@centos7 infiniband]# ibv_devices device node GUID rxe0 b20875fffe5fb85e rxe1 46a191fffea49c0c [root@centos7 infiniband]# ibv_devinfo -d rxe0 -v 阅读全文
posted @ 2023-05-31 14:34 tycoon3 阅读(48) 评论(0) 推荐(0) 编辑

导航