Skip to content

Instantly share code, notes, and snippets.

MATSUU Takuto matsuu

Block or report user

Report or block matsuu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matsuu
matsuu / bench.sh
Last active Oct 4, 2015
ISUCON5予選のベンチマーク回すスクリプト
View bench.sh
#!/bin/sh
. /home/isucon/env.bench.sh
TARGET_IP="${1:-127.0.0.1}" # CHANGEME
(
cd /home/isucon/isucon5-qualify/bench
cat /home/isucon/isucon5-qualify/webapp/script/testsets/testsets.json | \
ruby -rjson -e "puts JSON.parse(STDIN.read).sample.to_json" | \
gradle -q run -Pargs="net.isucon.isucon5q.bench.scenario.Isucon5Qualification ${TARGET_IP}" | \
@matsuu
matsuu / kataribe.output
Created Sep 27, 2015
kataribe output for ISUCON5-qualifier
View kataribe.output
Top 20 Sort By Count
Count Total Mean Stddev Min P50.0 P90.0 P95.0 P99.0 Max 2xx 3xx 4xx 5xx Request
81 118.141 1.458531 0.854565 0.001 1.296 2.459 2.914 4.072 4.072 68 13 0 0 GET / HTTP/1.1
48 31.176 0.649500 0.693257 0.008 0.571 1.541 1.747 2.752 2.752 48 0 0 0 GET /diary/entries/*
47 26.098 0.555277 0.529341 0.002 0.554 1.226 1.560 1.781 1.781 46 0 1 0 GET /diary/entry/*
42 24.076 0.573238 0.796470 0.004 0.219 1.387 2.487 3.700 3.700 42 0 0 0 GET /profile/*
31 19.325 0.623387 0.814492 0.001 0.022 1.705 2.380 2.793 2.793 0 31 0 0 POST /login HTTP/1.1
31 11.656 0.376000 0.535269 0.000 0.017 1.222 1.588 1.770 1.770 31 0 0 0 GET /login HTTP/1.1
27 33.134 1.227185 0.505432 0.220 1.291 1.974 2.048 2.120 2.120 27 0 0 0 GET /friends HTTP/1.1
18 8.293 0.460722 0.592002 0.004 0.215 1.742 2.109 2.109 2.109
@matsuu
matsuu / trusted.pem
Created Aug 1, 2015
Trusted Certificate Chain for WoSign Free SSL Certificate(SHA2)
View trusted.pem
-----BEGIN CERTIFICATE-----
MIIFrDCCA5SgAwIBAgIQOPZFweJdkSzOOys5EjF0DTANBgkqhkiG9w0BAQsFADBV
MQswCQYDVQQGEwJDTjEaMBgGA1UEChMRV29TaWduIENBIExpbWl0ZWQxKjAoBgNV
BAMTIUNlcnRpZmljYXRpb24gQXV0aG9yaXR5IG9mIFdvU2lnbjAeFw0xNDExMDgw
MDU4NThaFw0yOTExMDgwMDU4NThaMFUxCzAJBgNVBAYTAkNOMRowGAYDVQQKExFX
b1NpZ24gQ0EgTGltaXRlZDEqMCgGA1UEAxMhV29TaWduIENBIEZyZWUgU1NMIENl
cnRpZmljYXRlIEcyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA47SA
DmswUIIvH+edv/h8QiXtrmHE64aHI38RH8CTXxuSkB53jLx29/sKpdV9rNxLGNhY
Lt9GazQPRWRghMLrmg5R1CpUUT4nO2Rohm98awA8mfZMqEUnraXLKzftWcNSTE/e
NJzyt9H6WMvlYp5VRly3xY04JDXvlyx8ZRAN75+XCNXlsxJ6kt3+iA+PpK+9xdY2
View gist:927415fa65006082e6b8
map $time_iso8601 $upstream {
default "app-b.example.org";
"~T(0|1[01])" "app-a.example.org";
}
server {
server_name app.example.org;
location / {
proxy_pass http://127.0.0.1;
proxy_set_header Host $upstream;
@matsuu
matsuu / nginx.conf
Last active Aug 29, 2015
時間帯によってupstreamを変える
View nginx.conf
map $time_iso8601 $upstream {
default "app-b.example.net";
"~T(0|1[01])" "app-a.example.net";
}
server {
listen 80;
server_name _;
location / {
View gist:c4b5532075c95401fb9e
server {
listen 80;
server_name _;
location /foo/ {
proxy_pass http://127.0.0.1:3000/;
}
location /bar/ {
proxy_pass http://127.0.0.1:3001/;
View keybase.md

Keybase proof

I hereby claim:

  • I am matsuu on github.
  • I am matsuu (https://keybase.io/matsuu) on keybase.
  • I have a public key whose fingerprint is 71AE D571 4B36 05D4 C18C E5D2 2686 C3E6 0528 0D69

To claim this, I am signing this object:

View altjs.dot
digraph G {
{
JavaScriptがわかる [shape=diamond]
型がほしい [shape=diamond]
"Flash/ActionScript3が青春だった" [shape=diamond]
DeNAに勤めている [shape=diamond]
"Ruby or Pythonが好き" [shape=diamond]
クラスはほしい [shape=diamond]
JavaScriptの文法に不満がある [shape=diamond]
関数型わかる [shape=diamond]
@matsuu
matsuu / Frame (243 bytes)
Created Jun 26, 2014
LINE Engineers' Blogのスクリーンショットにあったフレーム書き起こし
View Frame (243 bytes)
00 1a 11 00 00 02 00 1a 11 00 00 01 08 00 45 00
00 e5 00 08 40 00 10 06 42 77 6c a8 b0 e3 0a 08
00 01 14 66 e4 65 ad 78 1a 52 52 87 e6 c7 50 18
ff ff ff e2 00 00 80 00 ba 31 3a 67 84 01 a6 78
f5 80 5a 70 49 5f f8 ab a5 80 27 18 5e 08 05 46
e0 0e 27 e2 cc 2e 52 f0 3a a9 86 b0 d8 91 e7 90
14 e9 31 97 ed f5 9a d5 44 4f 01 43 a8 26 9f 56
01 97 48 ab e3 42 97 8e 96 8f f0 56 1f a8 f5 44
52 39 bc 3e 06 81 3a 20 4b 69 ba 5d cf 10 c8 72
a9 e3 0e d2 6b d5 64 2a d5 a8 8a 5e f2 cb ec cf
View gist:68930f709ef53474315e
; <<>> DiG 9.9.5 <<>> any localhost. @202.216.224.67
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30301
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
You can’t perform that action at this time.