Skip to content

Instantly share code, notes, and snippets.

@knarfeh
knarfeh / pet-snippet.toml
Last active March 16, 2017 14:21
description
[[snippets]]
description = "[zookeeper]Lists brief details for the server and connected clients of zookeeper"
command = "echo stat | nc 42.159.240.36 2181"
[[snippets]]
description = "[zookeeper]Outputs a list of variables that could be used for monitoring the health of the cluster"
command = "echo mntr | nc 42.159.240.36 2181"
package main
import (
"flag"
"fmt"
"time"
"gopkg.in/olivere/elastic.v2"
)
d "a"
""
adfa " "
2.051 NONE - 1.1.1.1 "-" www.example.com /data/small.jpg GET "Tengine<||>-" 404 "-" "Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0" "zh-CN,zh;q=0.5<||>-" "sid18915=96ab1ba4; visit18915=35; last18915=1430279909;" "-"
3.051 NONE - 1.1.1.1 "-" www.example.com /data/small.jpg GET "Tengine<||>-" 404 "-" "Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0" "zh-CN,zh;q=0.5<||>-" "sid18915=96ab1ba4; visit18915=35; last18915=1430279909;" "-"
4.051 NONE - 1.1.1.1 "-" www.example.com /data/small.jpg GET "Tengine<||>-" 404 "-" "Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0" "zh-CN,zh;q=0.5<||>-" "sid18915=96ab1ba4; visit18915=35; last18915=1430279909;" "-"
5.051 NONE - 1.1.1.1 "-" www.example.com/data/small.jpg GET "Tengine<||>-" 404 "-" "Mozilla/5.0 (Windows NT 6.1; rv:37.0) Gecko/20100101 Firefox/37.0" "zh-CN,zh;q=0.5<||>-" "sid18915=96ab1ba4; visit18915=35; last18915=1430279909;" "-"
6.051 NONE - 1.1.1.1"-" www.example.com /data/small.jpg GET "Te
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import os
reload(sys)
sys.setdefaultencoding('utf-8')
# !/usr/bin/env python2
# -*- coding: utf-8 -*-
import urllib2
import re
import os
import time
import sys
from AppKit import NSWorkspace, NSScreen
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import re
from bs4 import BeautifulSoup
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )

title: "这里是题目" date: 2014-03-11 00:33:34 tags: [algorithms, leetcode]

描述


这里是描述

@knarfeh
knarfeh / 0_reuse_code.js
Created February 28, 2016 12:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@knarfeh
knarfeh / chapter2.html
Last active February 28, 2016 12:06
#html
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<title>第一章 十八岁那年</title>
</head>
<body>
<div>
<h3>第一章 十八岁那年</h3>
<p> </p>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<title>龙应台序 认识一个十八岁的人</title>
</head>
<body>
<div>
<p>龙应台序 认识一个十八岁的人</p>
<p> </p>