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
Ocorreu um erro ao processar seu pedido... | |
Infelizmente, no momento não é possível exibir esta página. | |
Tente novamente daqui a alguns instantes. | |
Se este erro persistir, entre em contato com o <Suporte do Google>. |
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
$ wn push | |
[Webbynode] Pushing golks | |
Counting objects: 56, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (36/36), done. | |
Writing objects: 100% (36/36), 3.90 KiB, done. | |
Total 36 (delta 26), reused 0 (delta 0) | |
remote: HEAD is now at 24a99c8 Include people in user history + css adjusts |
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
pt-BR: | |
errors: | |
messages: | |
expired: 'expirou, por favor solicite um novo' | |
not_found: 'não encontrado' | |
already_confirmed: 'já foi confirmado, por favor tente fazer login' | |
not_locked: 'não estava bloqueado' | |
not_saved: | |
one: "1 erro impediu que %{resource} fosse salvo:" | |
other: "%{count} erros impediram que %{resource} fosse salvo:" |
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
begin | |
Sunspot::Rails::Server.new.start | |
sleep 5 | |
rescue Sunspot::Server::AlreadyRunningError | |
puts 'Sunspot already running...' | |
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
$ rvm install ree | |
Installing Ruby Enterprise Edition from source to: /home/golks/.rvm/rubies/ree-1.8.7-2011.03 | |
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03) | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 7713k 100 7713k 0 0 1118k 0 0:00:06 0:00:06 --:--:-- 1394k | |
--no-same-owner | |
ree-1.8.7-2011.03 - #installing | |
ERROR: Error running './installer -a /home/golks/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems ', please read /home/golks/.rvm/log/ree-1.8.7-2011.03/install.log | |
ERROR: There has been an error while trying to run the ree installer. Halting the installation. |
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
tion for sock_gethostname | |
.. | |
No definition for sock_s_gethostbyaddr | |
... | |
No definition for sock_s_getnameinfo | |
. | |
No definition for sock_s_pack_sockaddr_in | |
. | |
No definition for sock_s_pack_sockaddr_in | |
. |
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 String | |
def to_date_from_br_format | |
unless self =~ /(\d{2})\/(\d{2})\/(\d{4})/ | |
raise "String is not formatted as a brazilian date (#{self})" | |
end | |
"#{$3}-#{$2}-#{$1}".to_date | |
end | |
def to_datetime_from_br_format | |
unless self =~ /(\d{2})\/(\d{2})\/(\d{4}) (\d{2}):(\d{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
# | |
# Pra quem ficou com preguiça de ficar dando refresh na página da polícia | |
# federal na hora de solicitar o passaporte | |
# | |
require 'rubygems' | |
require 'net/http' | |
require 'uri' | |
cpf = "1234567890" |
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
require 'resque/tasks' | |
require 'active_record' | |
env = ENV["RAILS_ENV"] || 'development' | |
database_config = YAML::load(File.open('config/database.yml')) | |
connection = ActiveRecord::Base.establish_connection(database_config[env]) | |
files = ['lib/foo', 'lib/bar', 'app/models/foo', 'app/workers/foo'] | |
files.each { |file| require file } |
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 ${1:ModelClassName}sController < ApplicationController | |
def index | |
@${2:model_class_name} = $1.all | |
end | |
def show | |
@$2 = $1.find params[:id] | |
end | |
def new |