Skip to content

Instantly share code, notes, and snippets.

linux:
date -d @1466237560
mac:
时间戳转本地时间:
date -r 1354291200
本地时间转时间戳:
date -j -f "%Y-%m-%d %H:%M:%S" "2012-12-01 00:00:00" "+%s"
在某个路径下查找所有包含“hello abcserver”字符串的文件。
find /etc -name “*” | xargs grep “hello abcserver”
@jialechan
jialechan / demo.md
Last active February 26, 2016 06:14
fastjson自定义反序列化
public class LoginResponse {
    private UserInfo userInfo;
    ...
}
public class UserInfo {
    private List<String> attrList;
 ...
<html>
<head><title>this is test page title</title>
<meta property="og:title" content="this is title from og title"/>
<meta property="og:description" content="this is description"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="http://static.palmchat.im/mytest.html"/>
<meta property="og:image" content="http://static.palmchat.im/source/new/mid_a43747788_1423822701.jpg"/>
</head>
<body>
this is page body