-
名前(任意)
- Hiroshige UMINO
-
Twitter or Facebookのアカウント or HN等
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log master..fix/foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo | |
| def bar_with_timeshift | |
| val = bar_without_timeshift | |
| Timecop.travel(Time.now + 10.seconds) | |
| val | |
| end | |
| alias_method_chain :bar, :timeshift | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/httpd/Qiita/shared/log/production.log { | |
| daily | |
| rotate 5 | |
| size=10M | |
| missingok | |
| notifempty | |
| delaycompress | |
| postrotate | |
| kill -USR1 $(cat ~httpd/Qiita/shared/pids/unicorn.pid) | |
| endscript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/httpd/Qiita/shared/log/production.log { | |
| daily | |
| rotate 5 | |
| size=10M | |
| missingok | |
| notifempty | |
| delaycompress | |
| postrotate | |
| kill -USR1 $(cat ~httpd/Qiita/shared/pids/unicorn.pid) | |
| endscript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/httpd/Qiita/shared/log/production.log { | |
| daily | |
| rotate 5 | |
| size=10M | |
| missingok | |
| notifempty | |
| delaycompress | |
| postrotate | |
| kill -USR1 $(cat ~httpd/Qiita/shared/pids/unicorn.pid) | |
| endscript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts 'hello' | |
| puts 'world!' | |
| fooo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| group :development do | |
| gem 'pry' | |
| gem 'pry-doc' | |
| gem 'pry-rails' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select foo from table_name into outfile "/tmp/output.csv" fields terminated by ','; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| helpers do | |
| def protected! | |
| unless authorized? | |
| response['WWW-Authenticate'] = %(Basic realm="Restricted Area") | |
| throw(:halt, [401, "Not authorized\n"]) | |
| end | |
| end | |
| def authorized? | |
| @auth ||= Rack::Auth::Basic::Request.new(request.env) |