Skip to content

Instantly share code, notes, and snippets.

View hidenowt's full-sized avatar

Herminio Torres hidenowt

View GitHub Profile
@hidenowt
hidenowt / novos erros npm
Created May 28, 2011 16:34
novos erros npm
[herminio] rbx-1.2.3 ~
$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 3874 101 3874 0 0 2327 0 0:00:01 0:00:01 --:--:-- 10248
fetching: http://registry.npmjs.org/npm/-/npm-1.0.6.tgz
0.4.8
1.0.6
prefix=/Users/herminio/.nvm/v0.4.8
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
arel (2.0.10)
authlogic (2.1.6)
builder (2.1.2)
faker (0.3.1)
i18n (0.5.0)
@hidenowt
hidenowt / .git-completion.sh
Created July 16, 2011 16:09
Arquivo de complemento do git.
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@hidenowt
hidenowt / gist:1205920
Created September 9, 2011 10:38
problema na hora de executar o rake db:migrate
[herminio@macbook: ~/Sites/projects/VipeClube (master)]$ rake db:migrate --trace
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
DEPRECATION WARNING: Rake tasks in vendor/plugins/exception_logger/tasks, vendor/plugins/i18n_label/tasks, vendor/plugins/jrails/tasks, and vendor/plugins/jw-playr-hlpr/tasks are deprecated. Use lib/tasks instead. (called from /Users/herminio/.rvm/gems/ruby-1.8.7-p352@vipeclube/gems/rails-2.3.11/lib/tasks/rails.rb:10)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead
rake aborted!
undefined method `name' for "RedCloth":String
/Users/herminio/.rvm/gems/ruby-1.8.7-p352@vipeclube/gems/rails-2.3.11/lib/rails/gem_dependency.rb:277:in `=='
[herminio@macbook: ~/Sites/projects/VipeClube (master)]$ cat config/environment.rb
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
# Caso esteja no servidor e na pasta do PRE.
raise "Ambiente não suportado, use RAILS_ENV=stage" if File.dirname(__FILE__).include?('pre_abuze') && RAILS_ENV != 'stage'