Skip to content

Instantly share code, notes, and snippets.

View matsumotory's full-sized avatar
🎯

Ryosuke Matsumoto / @matsumotory matsumotory

🎯
View GitHub Profile
@sawanoboly
sawanoboly / docker_conf_trusterd.conf.rb
Last active August 29, 2015 14:17
docker run -d -p 443:8080 local/trusterd
SERVER_NAME = "Trusterd"
SERVER_VERSION = "0.0.1"
SERVER_DESCRIPTION = "#{SERVER_NAME}/#{SERVER_VERSION}"
root_dir = "/usr/local/trusterd"
s = HTTP2::Server.new({
#
# required config
@kjunichi
kjunichi / README.ja.md
Last active November 13, 2015 04:46
Pythonで動くtrusterd ~ まだhttp1で消耗してんの ~

参考資料

PythonのThread処理は以下の記事を参考にしました。

Linuxだともしかすると、nghttpのビルドで--disable-threadsしないと不幸が起こるかもしれない。。。

OSXではそもそもnghttp2ライブラリがマルチスレッドで動かせないとのことなので、この辺りの心配は少なそう。

@tatsuhiro-t
tatsuhiro-t / bench-backend.conf
Last active August 4, 2017 17:24
HTTP/2 server benchmark Jan 2015
listen: 3001
http2-max-concurrent-requests-per-connection: 1024
max-connections: 15000
num-threads: 1
hosts:
localhost:
paths:
/:
file.dir: /path/to/htdocs
@rrreeeyyy
rrreeeyyy / ipvs_http_api.rb
Created June 17, 2014 17:50
IPVS Web API using mruby-ipvs and mruby-simplehttpserver.
services = {}
def body_parser(body)
params = {}
body.split('&').each do |x|
tokens = x.split('=', 2)
if tokens && tokens.size == 2
params[tokens[0]] = HTTP::URL::decode(tokens[1])
end
end
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {