This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
ulimit-n 51200 | |
log 127.0.0.1 local2 | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
user haproxy | |
group haproxy | |
daemon | |
defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This is a script provided to the users for painless migrate to new keywords. | |
# To be extra careful, we explicitly replace each exact keyword. | |
keywords = [ | |
/\bParse\b/, | |
/\bParseACL\b/, | |
/\bParseAnalytics\b/, | |
/\bParseAnonymousUtils\b/, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qiniu.conf | |
qiniu.conf.ACCESS_KEY = "<AKEY>" | |
qiniu.conf.SECRET_KEY = "<SKEY>" | |
import qiniu.rs | |
import qiniu.rsf | |
import datetime | |
def list_all(bucket_name, prefix=None, limit=100, days=30): | |
d = datetime.datetime.now() - datetime.timedelta(days) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# | |
# $ tornado.options.py -port=7777 | |
# listen: 7777 | |
# | |
# $ tornado.options.py -help | |
# --port Run on the given port (default 8888) | |
from tornado.options import define, options, parse_command_line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. 开始任务,创建一个新的分支 | |
bw start <feature> | |
git checkout master | |
git fetch origin -v | |
git fetch upstream -v | |
git checkout -B <feature> | |
# 1.1 编码中 | |
git commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat data.json | python -mjson.tool > data_pretty.json |