I hereby claim:
- I am jeffersongirao on github.
- I am jeffersongirao (https://keybase.io/jeffersongirao) on keybase.
- I have a public key ASCMlXLNG9PSqzfq8DX0PYfEiKK9Un_icbBHhcm86hu3XQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
== Rules == | |
On Infrastructure | |
----------------- | |
There is one system, not a collection of systems. | |
The desired state of the system should be a known quantity. | |
The "known quantity" must be machine parseable. | |
The actual state of the system must self-correct to the desired state. | |
The only authoritative source for the actual state of the system is the system. | |
The entire system must be deployable using source media and text files. |
- name: check current global ruby | |
command: rbenv global | |
register: ruby_global | |
changed_when: false | |
- name: make ruby {{global}} global | |
command: rbenv global {{global}} | |
when: "not ruby_global.stdout | match(global)" |
# Deploying Sinatra apps to Amazon EC2 using rubber (normally used for Rails deployment to EC2) | |
# | |
# Rakefile needed by rubber for non-rails apps | |
# | |
require 'rake' | |
require 'rake/testtask' | |
require 'rake/rdoctask' | |
env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'development') | |
root = File.dirname(__FILE__) |
# Variation on Hashrocket's script for managing the git process | |
# as documented here: http://reinh.com/blog/2008/08/27/hack-and-and-ship.html | |
# Create shell scripts out of each of these, put them in your path (~/bin for example) | |
# chmod 755 them and use like this: | |
# | |
# This version of hack is totally different than Hackrockets. I feel that hack implies | |
# that you are getting started, not finishing up. sink is Hashrockets hack. | |
# | |
# $ hack branch_name | |
# Test and Implement until done |
# extracted from https://github.com/grosser/project_template | |
rule /^version:bump:.*/ do |t| | |
sh "git status | grep 'nothing to commit'" # ensure we are not dirty | |
index = ['major', 'minor','patch'].index(t.name.split(':').last) | |
file = 'lib/GEM_NAME/version.rb' | |
version_file = File.read(file) | |
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a | |
version_parts[index] = version_parts[index].to_i + 1 | |
version_parts[2] = 0 if index < 2 |
[JOGANDO] Mortal Kombat (MK9) | |
[JOGANDO] Batman Arkham City | |
[JOGANDO] PES 2011 | |
[PEDIDO] Tekken 6 | |
[PEDIDO] Assassins Creed | |
[VENDIDO] Brutal Legend | |
[VENDIDO] Resident Evil 5 | |
Little Big Planet |
#!/bin/sh -x | |
git checkout master | |
git pull origin master | |
git checkout -b $1 master |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
# Define abilities for the passed in user here. For example: | |
# | |
# user ||= User.new # guest user (not logged in) | |
# if user.admin? | |
# can :manage, :all | |
# else |
while line = socket.gets | |
puts line.chop | |
end |