- http://coedo-dev.doorkeeper.jp/events/20181
- 講師: 野島 梨恵氏(東京山王法律事務所)
- 2015-02-10 19:15-20:45
- Co-Edo
- システム開発そのものは素人だけど、裁判にはクライアント/開発側の両方で関わったことがある。
- 裁判官はもっとシステム開発については分かってない。
start_server --status-file=/path/to/app/log/start_server.stat \ | |
--port=10080 --signal-on-hup=CONT --dir=/path/to/app -- \ | |
bundle exec --keep-file-descriptors unicorn -c config/unicorn.conf.rb config.ru |
require 'active_support/core_ext/kernel/reporting' | |
require 'monitor' | |
# Monkey patch silence_stream to be thread safe | |
# -> Pull request on Rails: https://github.com/rails/rails/pull/13139 | |
# -> But this will allow us to continue to see log output when running specs | |
# -> It could be we just patch ActiveRecord::SessionStore that triggers the `.quietly` calls | |
# on logging the `find_session_id` calls. | |
module Kernel | |
# Silences any stream for the duration of the block. |
pb-kill-line () { | |
zle kill-line | |
echo -n $CUTBUFFER | pbcopy | |
} | |
pb-kill-whole-line () { | |
zle kill-whole-line | |
echo -n $CUTBUFFER | pbcopy | |
} |