How to filter emails from GitHub in Gmail and flag them with labels.
The labels in this document are just examples.
Filter | Label |
---|
module FactoryGirl | |
module Doctor | |
module FloatDuration | |
refine Float do | |
def duration | |
t = self | |
format("%02d:%02d.%03d", t / 60, t % 60, t.modulo(1) * 1000) | |
end | |
end | |
end |
# if you want to render flamegraphs | |
gem "stackprof", require: false # required by flamegraph | |
gem "flamegraph", require: false |
module xxx | |
class Application < Rails::Application | |
#(中略) | |
config.middleware.swap ActiveRecord::ConnectionAdapters::ConnectionManagement, | |
'ActiveRecord::ConnectionAdapters::ReconnectOnErrorManagement' | |
end | |
end |
require 'benchmark/ips' | |
require 'redis' | |
class MethodProfiler | |
def self.patch(klass, methods, name) | |
patches = methods.map do |method_name| | |
<<~RUBY | |
unless defined?(#{method_name}__mp_unpatched) | |
alias_method :#{method_name}__mp_unpatched, :#{method_name} | |
def #{method_name}(*args, &blk) | |
unless prof = Thread.current[:_method_profiler] |
FROM madnight/docker-alpine-wkhtmltopdf as wkhtmltopdf_savior | |
# STAGE for bundle & yarn install | |
FROM ruby:2.4.3-alpine3.7 as builder | |
ENV CA_CERTS_PATH /etc/ssl/certs/ | |
ENV RAILS_ENV production | |
ENV RAILS_LOG_TO_STDOUT true | |
ENV RAILS_SERVE_STATIC_FILES true |