This file contains hidden or 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
[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' |
This file contains hidden or 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
[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 `==' |
This file contains hidden or 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
#!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: | |
# |
This file contains hidden or 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
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) |
This file contains hidden or 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
[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 |
This file contains hidden or 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
[herminio] rbx-1.2.3 ~ | |
$ nvm ls | |
v0.4.8 | |
stable: v0.4.8 | |
latest: v0.4.8 | |
current: v0.4.8 | |
# use 'nvm sync' to update from nodejs.org | |
[herminio] rbx-1.2.3 ~ | |
$ node -v |
This file contains hidden or 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
[herminio] rbx-1.2.3 ~ | |
$ nvm ls | |
v0.4.8 | |
stable: v0.4.8 | |
latest: v0.4.8 | |
current: v0.4.8 | |
default -> v0.4.8 | |
# use 'nvm sync' to update from nodejs.org | |
[herminio] rbx-1.2.3 ~ |
This file contains hidden or 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
net.js:391 | |
throw new Error('Socket is not writable'); | |
^ | |
Error: Socket is not writable | |
at Socket._writeOut (net.js:391:11) | |
at Socket.write (net.js:377:17) | |
at EventEmitter.<anonymous> (/Users/herminio/Projects/node/nodejs-fnando/chat-tcp.js:12:12) | |
at EventEmitter.emit (events.js:81:20) | |
at Socket.<anonymous> (/Users/herminio/Projects/node/nodejs-fnando/chat-tcp.js:28:15) | |
at Socket.emit (events.js:64:17) |
This file contains hidden or 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 | |
============================================ | |
build-essential vim curl zlib1g-dev libssl-dev libreadline6-dev | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
OBS: copiar uma das ultimas linhas e instalar as libs que o rvm pede... e a da jvm tb! |
This file contains hidden or 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
As contas de usuário | |
Um arquivo em particular no diretório de configuração do sistema contém a lista de usuários do sistema: /etc/passwd. Ao contrário do que o nome sugere, ele geralmente não contêm senhas de usuários, pois eles são, na maioria dos casos, armazenados usando o formato de sombras em um arquivo separado /etc/shadow por razões de segurança. Ele, no entanto, vem com alguns bits de informações para cada usuário. Uma linha do arquivo passwd que representa um usuário, a seguinte sintaxe deve ser respeitado: | |
Name:password:ID:group ID:comment:home directory:login shell | |
Na prática, o bit senha é substituído por "x" indicando que a senha real é armazenado no arquivo /etc/shadow. | |
Adicionando uma nova conta de usuário pode ser tão simples quanto adicionar uma linha ao arquivo /etc/passwd. Basta utilizar o useradd. | |
A sintaxe mais básica para este comando é useradd usuário. Isso cria uma nova conta de usuário com as configurações padrão (que pode ser personalizada), um diretório home para o usuário local |
NewerOlder