上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: 判断占用字节数。 阅读全文
posted @ 2018-04-12 17:26 于光远 阅读(873) 评论(0) 推荐(0)
摘要: #include #include #include #include #include using namespace std; void saveConfigFile( string filePath, string keyStr,string replaceStr){ fstream file(filePath.c_str()); string line; ... 阅读全文
posted @ 2018-03-07 09:49 于光远 阅读(798) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/npy_lp/article/details/7010752 通过一个结构体变量的地址,求该结构体的首地址。 其中代码难以理解的地方就是它灵活地运用了0地址。如果觉得&( (struct test_struct *)0 )->ch这样的代码不好理解,那么我们 阅读全文
posted @ 2017-12-19 16:57 于光远 阅读(297) 评论(0) 推荐(0)
摘要: 参考:http://blog.csdn.net/nowayings/article/details/38926501 https://www.cnblogs.com/bonelee/p/6234647.html 打印到日志中: 代码如下 配置如下:添加第2行部分。 ubuntu@ubuntu-vm: 阅读全文
posted @ 2017-11-25 16:28 于光远 阅读(431) 评论(0) 推荐(0)
摘要: http://www.freebuf.com/articles/system/23993.html 在本文开始之前,我想指出我不是专家。据我所知,在这个庞大的区域,没有一个“神奇”的答案.分享,共享(我的出发点)。下面是一个混合的命令做同样的事情,在不同的地方,或只是一个不同的眼光来看待事物。我知道 阅读全文
posted @ 2017-11-25 14:50 于光远 阅读(3141) 评论(0) 推荐(0)
摘要: #define SVP_ENV(env_name, default_value) ({const char* env = getenv(env_name); env ? env : default_value;})#define SVP_VERSION SVP_ENV("SVP_VERSION", "")string str... 阅读全文
posted @ 2017-11-21 09:36 于光远 阅读(745) 评论(0) 推荐(0)
摘要: http://www.networkinghowtos.com/howto/change-the-iptables-log-file/ http://www.networkinghowtos.com/howto/change-the-iptables-log-file/ An important a 阅读全文
posted @ 2017-11-20 17:14 于光远 阅读(281) 评论(0) 推荐(0)
摘要: 出现:error: openssl/md5.h: No such file or directory 原因是libssl-dev 没有安装,执行: sudo apt-get install libssl-dev 就可以了 如果还报错: MD5.cpp:(.text+0xd): undefined r 阅读全文
posted @ 2017-11-15 15:24 于光远 阅读(327) 评论(0) 推荐(0)
摘要: 生成公钥私钥 使用命令生成私钥 参数:genrsa 生成密钥 -out 输出到文件 rsa_private_key.pem 文件名 1024 长度 从私钥中提取公钥: shell加解密 使用公钥加密: 参数: rsautl 加解密 -encrypt 加密 -in 从文件输入 a.txt 文件名 -i 阅读全文
posted @ 2017-11-06 10:29 于光远 阅读(1098) 评论(0) 推荐(0)
摘要: ubuntu@ubuntu-vm:~/workspace/encryption$ g++ main.cpp ubuntu@ubuntu-vm:~/workspace/encryption$ ./a.out enc -des -e -a -in main.cpp -out aaubuntu@ubunt 阅读全文
posted @ 2017-11-03 12:23 于光远 阅读(4332) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页