- 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
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
if defined?(ActiveRecord::Base) && defined?(Authlogic) | |
controller = ApplicationController.new | |
require 'action_controller/test_case' | |
controller.instance_variable_set(:@_request, ActionController::TestRequest.new) | |
controller.instance_variable_set(:@_response, ActionController::TestResponse.new) | |
Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(controller) | |
end | |
UserSession.new( User.first ) |
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
def update(i) | |
ActiveRecord::Base.transaction do | |
sleep(0.5) | |
id = 5928598 | |
person = Person.lock.find(id) | |
person.name = "Rodolfo#{i}" | |
person.save! | |
end | |
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
function getRecipes(id) { | |
return $.map($('*[data-region="' + id + '"] li.opaque'), function(elem) { | |
return $(elem).text().replace('remove', '').trim(); | |
}) | |
}; | |
var setupRecipes = getRecipes('CustomRecipes.Setup'); | |
var configureRecipes = getRecipes('CustomRecipes.Configure'); | |
var deployRecipes = getRecipes('CustomRecipes.Deploy'); | |
var undeployRecipes = getRecipes('CustomRecipes.Undeploy'); |
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 ruby | |
require_relative 'config/environment' | |
path = ARGV.shift || raise("specify migration as first argument") | |
require_relative path | |
filename = File.basename(path, ".rb") | |
timestamp, name = filename.split("_", 2) |
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
before_filter :set_view_paths | |
def index | |
end | |
private | |
def set_view_paths | |
prepend_view_path 'projects/override' | |
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
# config/unicorn.rb | |
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) | |
timeout 60 | |
preload_app true | |
before_fork do |server, worker| | |
Signal.trap 'TERM' do | |
puts 'Unicorn master intercepting TERM and sending myself QUIT instead' | |
Process.kill 'QUIT', Process.pid | |
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
#!/bin/bash | |
if [ -z $1 ] ; then | |
SQL=" | |
SELECT | |
CONCAT(table_schema, '.', table_name) 'Table', | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') 'Tot Size', | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') 'Rows', | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') 'Data', | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') 'Idx', |
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
#!/bin/bash | |
if [ -z $1 ] ; then | |
SQL=" | |
SELECT | |
CONCAT(table_schema, '.', table_name) 'Table', | |
CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') 'Tot Size', | |
CONCAT(ROUND(table_rows / 1000000, 2), 'M') 'Rows', | |
CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') 'Data', | |
CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G') 'Idx', |
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
// Example webpack configuration with asset fingerprinting in production. | |
'use strict'; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var StatsPlugin = require('stats-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
// must match config.webpack.dev_server.port | |
var devServerPort = 3808; |
NewerOlder