摘要: sudo apt-get install openssh-clientsudo apt-get install openssh-serversudo /etc/init.d/ssh stopsudo /etc/init.d/ssh startsudo apt-get install nasm 阅读全文
posted @ 2020-05-12 23:06 xinyueliu 阅读(171) 评论(0) 推荐(0)
摘要: --Xv6, a simple Unix-like teaching operating system https://pdos.csail.mit.edu/6.828/2012/xv6.html --x86架构操作系统内核的实现 http://wiki.0xffffff.org/ --写一个操作系 阅读全文
posted @ 2020-05-11 10:11 xinyueliu 阅读(162) 评论(0) 推荐(0)
摘要: #include "stdafx.h" #include <iostream> #include <string> #include <map> #include <list> #include <queue> #include <stack> typedef struct forest { std 阅读全文
posted @ 2020-05-04 18:52 xinyueliu 阅读(160) 评论(0) 推荐(0)
摘要: --start with ... connect by prior --case1 select * from org o --excute order=>first:start with connect by prior, then where condition where o.flag = ' 阅读全文
posted @ 2020-05-01 02:46 xinyueliu 阅读(138) 评论(0) 推荐(0)
摘要: A:1.0.0.1~126.255.255.254 (00000001 00000000 00000000 00000001~01111110 11111111 11111111 11111110)mask:255.0.0.0hostnumbers:256^3-2=16777214B:128.1.0 阅读全文
posted @ 2020-04-29 02:01 xinyueliu 阅读(252) 评论(0) 推荐(0)
摘要: %s/{/\r{\r/g%s/}/\r}\r/g%s/;\([^\r]\+\)/;\r\1/ggg=G ggvG= 阅读全文
posted @ 2020-04-28 14:53 xinyueliu 阅读(107) 评论(0) 推荐(0)
摘要: set hlsearchset nohlsearch .* => non-greedy: .\{-} .+=> non-greedy: .\{-1,} 阅读全文
posted @ 2020-04-28 12:18 xinyueliu 阅读(195) 评论(0) 推荐(0)
摘要: sed -i 's/111/222/g' input.txtawk 'NR == 2' input.txt #output line2sed -n 2p input.txt #output line2tail -n2 input.txt #only output the last two lines 阅读全文
posted @ 2020-04-28 11:23 xinyueliu 阅读(127) 评论(0) 推荐(0)
摘要: grep -o 1111 input.txtvim:%s/1111/&/gn:m,ns/字符串/&/gn sed -n '/111/p' input.txtcut -d' ' -f1 input.txt|sort -rn|uniq -c |sort -rn awk -v RS="@#$j" '{pr 阅读全文
posted @ 2020-04-28 11:20 xinyueliu 阅读(121) 评论(0) 推荐(0)
摘要: #include "stdafx.h" #include <iostream> #include <cstdlib> static int _sumFibSeq(const int n, int pArrayFib[]) { if (0 != pArrayFib[n - 1]){ return pA 阅读全文
posted @ 2020-04-27 23:31 xinyueliu 阅读(161) 评论(0) 推荐(0)