location /protected {
internal;
alias /var/www/myapp/current/protected;
}
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!-- Fri, 24 Feb 2006 Generated from KCHR: "Latvian" --> | |
| <!--Last edited by Ukelele version 1.8b6 on 2008-04-23 at 22:32 (EEST)--> | |
| <!--Created by Ukelele version 1.8b6 on 2008-04-23 at 21:59 (EEST)--> | |
| <keyboard group="29" id="30765" name="Latvian fixed" maxout="1"> | |
| <layouts> | |
| <layout first="0" last="0" modifiers="commonModifiers" mapSet="ANSI"/> | |
| </layouts> | |
| <modifierMap id="commonModifiers" defaultIndex="8"> |
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
| # Become root | |
| su - | |
| # Add multimedia source | |
| echo "deb http://www.deb-multimedia.org jessie main non-free" > /etc/apt/sources.list.d/deb-multimedia.org.list | |
| echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.org.list | |
| apt-get update | |
| apt-get install deb-multimedia-keyring # if this aborts, try again | |
| apt-get update |
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
| #!/usr/bin/env ruby | |
| # $ ruby -v | |
| # ruby 2.3.0dev (2015-11-17 trunk 52623) [x86_64-darwin15] | |
| # ruby gc_threads_issue.rb | |
| # stack level too deep | |
| # GC major: 0, minor: 0 | |
| # GC major: 0, minor: 0 | |
| # GC major: 0, minor: 0 | |
| # Killed: 9 # <- gets stuck, so kill -9 is the only way to stop it |
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
| #!/usr/bin/env ruby | |
| class Infinity | |
| def self.run | |
| 1.times { run } | |
| end | |
| end | |
| Thread.new do | |
| loop do |
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
| require "timeout" | |
| RSpec::Matchers.define :become do |expected| | |
| supports_block_expectations | |
| match do |block| | |
| begin | |
| Timeout.timeout(Capybara.default_wait_time * 3) do | |
| sleep(0.1) until (@actual = block.call) && @actual == expected | |
| true |
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
| set :slack_webhook_url, "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXX" | |
| namespace :slack do | |
| task :deploy_started do | |
| username = ENV['USER'] | |
| on_rollback do | |
| slack( | |
| color: "danger", | |
| message: "*#{username}* cancelled deployment of *#{application}* to *#{rails_env}*" |
I hereby claim:
- I am ebeigarts on github.
- I am ebeigarts (https://keybase.io/ebeigarts) on keybase.
- I have a public key whose fingerprint is A14B 0A98 2061 C331 E4D8 C62B BD92 D3E2 0910 B700
To claim this, I am signing this object:
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
| if Rails.env.development? | |
| ActionView::PathSet.class_eval do | |
| private | |
| alias_method :__find_all, :_find_all | |
| def _find_all(*args) | |
| t1 = Time.now | |
| __find_all(*args) | |
| ensure | |
| t2 = Time.now | |
| Thread.current["find_template_time"] ||= 0 |
