上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页
摘要: 一、 利用 vim/vi 加密:优点:加密后,如果不知道密码,就看不到明文,包括root用户也看不了;缺点:很明显让别人知道加密了,容易让别人把加密的文件破坏掉,包括内容破坏和删除; vi编辑器相信大家都很熟悉了吧,vi里有一个命令是给文件加密的,举个例子吧:1) 首先在root主目录/root/下 阅读全文
posted @ 2017-11-03 09:39 于光远 阅读(3900) 评论(0) 推荐(0)
摘要: vector v; sort(v.begin(),v.end()); v.erase(unique(v.begin(), v.end()), v.end()); 阅读全文
posted @ 2017-10-31 10:13 于光远 阅读(2260) 评论(0) 推荐(0)
摘要: ubuntu@ubuntu-vm:~/workspace/template$ g++ main.cpp --std=c++11ubuntu@ubuntu-vm:~/workspace/template$ ./a.out 4 阅读全文
posted @ 2017-10-23 15:37 于光远 阅读(206) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/xianjie0318/article/details/75712990 1.按内存从大到小排列进程: ps -eo "%C : %p : %z : %a"|sort -k5 -nr 2查看当前有哪些进程;查看进程打开的文件: ps -A ;lsof -p 阅读全文
posted @ 2017-10-08 15:27 于光远 阅读(255) 评论(0) 推荐(0)
摘要: 跳跃表(英文名:Skip List),于 1990 年 William Pugh 发明,是一个可以在有序元素中实现快速查询的数据结构,其插入,查找,删除操作的平均效率都为 。 跳跃表的整体性能可以和二叉查找树(AVL 树,红黑树等)相媲美,其在 Redis 和 LevelDB 中都有广泛的应用。 每 阅读全文
posted @ 2017-09-29 15:49 于光远 阅读(948) 评论(0) 推荐(0)
摘要: http://www.blogjava.net/fjzag/articles/317773.htmlubuntu@ubuntu-vm:/work/sv-g5-application/projects/sysmonitor/src$ cat SVPSysMonitor.cpp /*##########################################################... 阅读全文
posted @ 2017-07-11 10:19 于光远 阅读(275) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 int main() 8 { 9 int fd,size,FileLen = 0,cur = 0; 10 char s [ ]="Linux Programmer!",buffer[100]; 11 12 fd = ope... 阅读全文
posted @ 2017-05-11 16:20 于光远 阅读(544) 评论(0) 推荐(0)
摘要: 我们从小就知道道歉要说“sorry”,于是这么些年似乎道歉也没学别的说法。 可是有时候,一个“sorry”怎么足以让别人原谅,或是显示你的虔诚。 以下是更多说法! 日常求原谅温情版 My mistake. I apologize. 是我的错,我道歉。 Blame me. 这怪我。 Can you f 阅读全文
posted @ 2017-05-03 08:34 于光远 阅读(151) 评论(0) 推荐(0)
摘要: 转http://blog.csdn.net/coroutines/article/details/38067805 1. 初始化 首先调用udev_new,创建一个udev library context。udev library context采用引用记数机制,创建的context默认引用记数为1 阅读全文
posted @ 2017-04-27 08:57 于光远 阅读(7232) 评论(0) 推荐(1)
摘要: #include #include #include #include #include using namespace std; using namespace Poco; int main(){ string s("/media/ygy/YGY"); Path my_path (s); cout<< Path::current()<<endl; URI... 阅读全文
posted @ 2017-04-24 19:39 于光远 阅读(566) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 20 下一页