摘要:
### 查询最后一次匹配字符串 grep '查找的内容' -A 500 文件名 | tail -n 501grep获取文件中的最后一次匹配项,以及后面500行, 注意是tail -n 501而不是tail -n 500,因为tail -n 500将不会显示匹配内容那一行如果查找的内容比较长,请把数字 阅读全文
摘要:
重置: 在win10命令行下执行: 安装: win+R打开bash 执行命令: 阅读全文
摘要:
Ubuntu18.04 出现E: Sub-process /usr/bin/dpkg returned an error code (100) 阅读全文
摘要:
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
摘要:
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
摘要:
Golang 支持在一个平台下生成另一个平台可执行程序的交叉编译功能。 1、Mac下编译Linux, Windows平台的64位可执行程序: 2、Linux下编译Mac, Windows平台的64位可执行程序: 3、Windows下编译Mac, Linux平台的64位可执行程序: 注:如果编译web 阅读全文
摘要:
安装EPEL Release,因为安装需要使用其他的repo源,所以需要EPEL支持:yum install -y epel-release#如果出现缺少Code提示,可以: sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7#安装完成之后,可 阅读全文
摘要:
关联嵌套查询 示例: <resultMap id="blogResult" type="Blog"> <association property="author" column="author_id" javaType="Author" select="selectAuthor"/> </resul 阅读全文
摘要:
Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
摘要:
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm to us 阅读全文