This file contains 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
ssh_options[:forward_agent] = true | |
default_run_options[:pty] = true | |
## | |
## available environments | |
## | |
task :production do | |
set :application, 'myapp.com' | |
set :repository, 'https://github.com/user/project.git' |
This file contains 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
# Locates a table cell based on given row and column content. | |
When /^(.*) in the "([^\"]*)" column of the "([^\"]*)" row$/ do |action, column_title, row_title| | |
col_number = 0 | |
all(:xpath, "//*[(th|td)/descendant-or-self::*[contains(text(), '#{column_title}')]]/th").each do |element| | |
col_number += 1 | |
break if element.has_content?(column_title) | |
end | |
within :xpath, "//*[(th|td)/descendant-or-self::*[contains(text(), '#{row_title}')]]/td[#{col_number}]" do | |
When action | |
end |
This file contains 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 bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby-1.9.3-p0@railsapp" | |
# | |
# Uncomment following line if you want options to be set only for given project. |
This file contains 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
rake generate | |
## Generating Site with Jekyll | |
directory source/stylesheets/ | |
create source/stylesheets/screen.css | |
/Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `require': no such file to load -- iconv (LoadError) | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `<top (required)>' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku.rb:85:in `require' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/maruku-0.6.0/lib/maruku.rb:85:in `<top (required)>' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:26:in `require' | |
from /Users/BLARG/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:26:in `<top (required)>' |
This file contains 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 MockRedis | |
attr_accessor :store | |
def initialize | |
@store = {} | |
end | |
def flushall | |
@store = {} | |
end |
quick hack to explore auto-saving on lint-free code
Using SublimeLint3
Sublime Text -> Preferences -> Browser Packages
Open sublimelinter.py
in Sublime.
Seek to the highlight
method (Cmd + R
)
replace with function (see below)
This file contains 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 bash | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
sudo update-locale LC_ALL=en_US.UTF-8 | |
sudo apt-get update | |
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev | |
# postgres |
This file contains 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 bash | |
if [[ ! -f "$1" ]]; then | |
echo "=> Movie file not found" | |
exit 1 | |
fi | |
tempfile=/tmp/output.gif | |
rm -f $tempfile |
- Alda Rocha: Mulheres que falam e palestram
- Alex Braha Stoll: Ruby + Rust
- Anderson Dias: 3B de jobs no Sidekiq
- Andre Luis Anastacio: Effective Rails Instrumentation
- Artur Caliendo Prado: Grafana, StatsD e InfluxDB
- Bruno Alves: Arquitetura de micro serviços
- Camila Campos: Como não escrever seus testes
- Charlotte Lorelei Oliveira: [Tolerância a falhas com supervisor trees em Elixir](https://docs.google.com/presentation/d/e/2PACX-1vT8eAiVAgK5_aHBduO-P2Cb1QbeaX4DyvHAsDbgfKOt0lDVBEl4Qm_KeCx7mNGn7PS16gMgZ-ffLkrO/pub?start=false&loop=fa
OlderNewer