1 2 3 4 5 ··· 7 下一页
摘要: 示例代码: class gfg { private: int a; gfg(const gfg&) = delete; gfg& operator=(const gfg&) = delete; public: explicit gfg(int a) { this->a = a; } void set 阅读全文
posted @ 2022-11-10 16:28 Ray.floyd 阅读(46) 评论(0) 推荐(0) 编辑
摘要: class Test { public: Test() {} int implAdd(int a, int b) { return a ^ b; } }; typedef std::shared_ptr<Test> Test_ptr; Test_ptr ff_ptr(new Test(std::mo 阅读全文
posted @ 2022-07-18 10:45 Ray.floyd 阅读(109) 评论(0) 推荐(0) 编辑
摘要: template<class Derived> class Basic { public: int interfaceAdd(int a, int b) { return static_cast<Derived*>(this)->implAdd(a, b); } private: virtual i 阅读全文
posted @ 2022-07-18 10:33 Ray.floyd 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 查询符合条件的记录所在的行 cat 文件名 |awk -F',' '{if ($1 == \"关键字1\" && $8 == \"关键字2\") {print NR\",\"$0}}' 合并文件1 文件2中的内容,并按指定字段排序: awk -F ',' '{if ($3 > %d) { print 阅读全文
posted @ 2022-01-07 09:54 Ray.floyd 阅读(33) 评论(0) 推荐(0) 编辑
摘要: NBNS扫描 def getHostNics(host): # create NetBIOS object n = nmb.NetBIOS() # get Netbios NAME resp = [] try: resp = n.getnodestatus('*', host, timeout = 阅读全文
posted @ 2022-01-07 09:46 Ray.floyd 阅读(213) 评论(0) 推荐(0) 编辑
摘要: tcpdump -i ens18 not ip6 and "udp or tcp or icmp" and src host 10.0.0.1 -n -w /tmp/save.pcap 抓包并保存 sudo tcpdump -i ens18 host 10.130.10.197 and udp an 阅读全文
posted @ 2021-10-27 16:23 Ray.floyd 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1,2})?$ 带1 阅读全文
posted @ 2021-08-05 10:21 Ray.floyd 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1,gitlab runner安装以及配置 Download and install binary # Download the binary for your system sudo curl -L --output /usr/local/bin/gitlab-runner https://git 阅读全文
posted @ 2021-05-22 14:54 Ray.floyd 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 步骤一,parted -l 修复 提示错误 GPT PMBR size mismatch (60062499 != 60995327) will be corrected by w(rite). 步骤二,查看磁盘空闲空间,并利用空闲空间建立新分区 sudo fdisk /dev/sda 使用m查看帮 阅读全文
posted @ 2021-04-19 14:39 Ray.floyd 阅读(992) 评论(0) 推荐(0) 编辑
摘要: 示例Json字符串,涉及json对象,json对象数组,json数组 { "type": 2, "area": [ { "id": 0, "name": "test0", "entry": 1, "exit": 2, "point": [ 1, 2, 3, 4 ] } ] } Boost json 阅读全文
posted @ 2021-01-26 14:16 Ray.floyd 阅读(2341) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页