- 「きをつけよう」は意味ない
- 実装、プラクティス、プロセスに落とし込む
- コードレビュー
- 二人で作業
- テストケース
| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/mizzy/consul-catalog" | |
| "log" | |
| "os" | |
| "reflect" | |
| "time" | |
| ) |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/usr/bin/env ruby | |
| # Puppet command running without SSL. Try: | |
| # $ ruby puppet.rb master --debug --no-daemonize --logdest console | |
| # $ ruby puppet.rb agent --server 127.0.0.1 --debug --no-daemonize --onetime --noop | |
| require "puppet/util/command_line" | |
| require "puppet/network/http/connection" | |
| require "puppet/network/http/webrick" |
| このLEMONってのがrapgeniusの人ね。 | |
| http://cache.gyazo.com/91f2e906a220fbeef2e9283b0aee597a.png | |
| Unicorn使っても2workerで動いているところに遅いリクエストが3件来たら詰まるよ!! | |
| 根本的な解決にならない!! | |
| とか言ってるんですよ。 | |
| じゃあ例えば、並列数1x10と並列数2x5で遅いリクエスト5件投げてキューに詰まる確率を考えてみよう。 | |
| 絵で表すとこう。絵じゃなくて文字だけど。 |
| #!/usr/bin/env ruby | |
| # Convert Trac DB Wiki pages to Markdown source files | |
| # This script is based on http://github.com/seven1m/trac_wiki_to_github which | |
| # converted all pages from a Trac DB to GitHub Wiki format (as Textile). | |
| # | |
| # I made two changes: | |
| # - uses MarkDown format instead | |
| # - uses the sqllite3-ruby gem which does not need Ruby 1.9 |