Skip to content

Instantly share code, notes, and snippets.

View joaovitor's full-sized avatar

Joao Vitor Lacerda Guimaraes joaovitor

  • Zero Hash
  • Belo Horizonte, MG, Brasil
View GitHub Profile
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git
anonymous
anonymous / gist:2523336
Created April 29, 2012 02:01
Changing author info
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]
@JonKernPA
JonKernPA / admin_smoke_test.feature
Created March 18, 2012 16:56
Cucumber UI Smoke Tests
Feature: Quickly exercise the primary ADMIN UIs just to make sure nothing blows up
Background: We need to pre-populate the database with the simulator results, and be logged in as admin
Given I login as "admin"
And we have the following Patients:
| Johnson |
| Henry |
| Walters |
| Glanzmann |
| Franklin |
@klauswuestefeld
klauswuestefeld / gist:1186975
Created September 1, 2011 19:03
Martin Fowler to Usurp Pattern
We couldn’t find that file to show.
@nstielau
nstielau / default.rb
Created May 18, 2011 16:22
A simple Chef recipe to install Jenkins
#
# Cookbook Name:: jenkins
# Recipe:: default
#
# https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
# This is super-simple, compared to the other Chef cookbook I found
# for Jenkins (https://github.com/fnichol/chef-jenkins).
#
# This doesn't include Chef libraries for adding Jenkin's jobs via
module Test
module Unit
TestCase = RSpec::Core::ExampleGroup
end
end
class Test::Unit::TestCase
def self.inherited(host)
host.set_it_up host.name.gsub(/(Spec|Test)/,'')
def host.method_added(name)
@rafamvc
rafamvc / test_obj.rb
Created April 8, 2011 20:43
Example of a mexican class
class TestObj
# All requests coming for #long_background_processing_method will be handled in the background
handle_async :method1
# This needs access to be a class method
schedule :method2, :every => :day, :at => '12:55am'
# The multiple will not allow two #method3 to run at the same time
@andresrc
andresrc / gist-github-gadget.xml
Created January 23, 2011 12:53
Gist.GitHub Google Gadget
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Derquinse Gist.GitHub Gadget">
<Require feature="dynamic-height" />
</ModulePrefs>
<UserPref name="gistId" display_name="Gist #" required="true" />
<Content type="html">
<![CDATA[
<div id="content_div">
@brunofms
brunofms / gist:740741
Created December 14, 2010 17:24 — forked from marcospereira/gist:594208
Vaga Globo.com :: Systems Engineer (Streaming)

A Globo.com

Você já deve conhecer a Globo.com: somos um dos maiores portais da Internet Brasileira. Por trás deste portal, existe uma grande equipe, composta por profissionais extremamente dedicados, competentes, comprometidos e apaixonados pelo que fazem. E estamos contratando!

Procuramos por alguém com vontade de fazer diferente, trazer mais alternativas e ações do que reclamações, lidar com os problemas de maneira criativa, se divertir e participar da criação de produtos usados por um público que é contado aos milhões. Nós queremos pessoas com paixão pelo que fazem! E, claro, pessoas que trabalhem com vontade de criar produtos dos quais elas se orgulhem de mostrar. Para nós é mais importante o quão curioso você é e não se seu currículo está recheado de siglas e especialidades. Se você tem bastante vontade para aprender e também é capaz de nos ensinar novos truques, essa é uma vaga para você.

WebMedia

Somos o time responsável pela área de vídeos da globo.com e aqui há o desafio de trabalhar com uma

@thbar
thbar / deploy.rb
Created September 7, 2010 18:18
Resque + god + capistrano recipe
# note - you may need to split into a before-deploy (stop) and after-deploy (start) depending on your setup
desc "Hot-reload God configuration for the Resque worker"
deploy.task :reload_god_config do
sudo "god stop resque"
sudo "god load #{File.join deploy_to, 'current', 'config', 'resque.god'}"
sudo "god start resque"
end
after 'deploy:update_code', 'deploy:update_shared_symlinks'