安装zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

awk 的使用方法

awk用来根据特定分割符获取字符串的。

awk -F分隔符 '{print $0, $1, $2, ...}'  # $0 表示全部,$1 表示第一部分
awk -F/ '{print $1}' # 输出根据/作为分割符分割字符串的第一部分

awk 'BEGIN{total=0} {total+=1} END{print total}'
awk '{print $1 | cat}' # 管道传递

python bottle upload

from bottle import run, request, route

@route("/upload", method="POST")
def upload():
	file = request.files.get("file")
	file.save(".", overwrite=True)

@route("/")
def index():
	return """<html>
<head>
	<title>upload</title>
</head>
<body>
	<form action="upload" method="POST" enctype="multipart/form-data">
		<input type="file" name="file" />
		<input type="submit" value="upload" />
	</form>
</body>
</html>"""


run()

nginx 配置 SSL

server {
	ssl on;
	ssl_certificate yueqiumao.crt;
	ssl_certificate_key yueqiumao.key;
}