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
# http://github.com/rails/rails/blob/master/railties/lib/rails/generators/actions.rb#L70-74 | |
# rails/railties/lib/rails/generators/actions.rb | |
# FROM: | |
in_root do | |
str = "gem #{parts.join(", ")}\n" | |
str = " " + str if @in_group | |
append_file "Gemfile", str, :verbose => false | |
end |
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
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist |
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
ArgumentError in RailsAdmin::MainController#dashboard | |
wrong number of arguments (1 for 2) | |
/Users/donahue/.rvm/gems/[email protected]/bundler/gems/rails_admin-62737a597283/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:5:in `initialize' | |
/Users/donahue/.rvm/gems/[email protected]/bundler/gems/rails_admin-62737a597283/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:39:in `new' | |
/Users/donahue/.rvm/gems/[email protected]/bundler/gems/rails_admin-62737a597283/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:39:in `block in latest' | |
activerecord (3.1.1) lib/active_record/relation.rb:15:in `map' | |
activerecord (3.1.1) lib/active_record/relation.rb:15:in `map' | |
/Users/donahue/.rvm/gems/[email protected]/bundler/gems/rails_admin-62737a597283/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb:39:in `latest' |
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
~/code/test/ $ which flatiron | |
/usr/local/bin/flatiron | |
~/code/test/ $ flatiron create testApp | |
help: flatiron | |
help: | |
help: create - Creates an empty template for a flatiron application | |
help: | |
help: |
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
# [email protected] OK: | |
jmd@mba ~/projects/test $ npm install [email protected] | |
npm http GET https://registry.npmjs.org/vows/0.6.0 | |
npm http 304 https://registry.npmjs.org/vows/0.6.0 | |
npm http GET https://registry.npmjs.org/eyes | |
npm http 304 https://registry.npmjs.org/eyes | |
npm WARN [email protected] dependencies field should be hash of <name>:<version-range> pairs | |
[email protected] ./node_modules/vows | |
└── [email protected] |
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
$ sudo apt-get update | |
$ sudo apt-get install git-core curl build-essential openssl libssl-dev | |
# node | |
$ git clone git://github.com/joyent/node.git && cd node | |
$ git checkout v0.6.17 | |
$ ./configure | |
$ make | |
$ sudo make install |
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
git clone git://github.com/antirez/redis.git && cd redis | |
git checkout v2.0.4-stable | |
sudo make install |
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
function git_branch_name { | |
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2` | |
echo "$val" | |
} | |
function parse_git_branch { | |
val=`git_branch_name | sed 's_\(.*\)_(\1)_'` | |
echo "$val" | |
} |
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
$ cd | |
$ git clone git://github.com/sstephenson/rbenv.git .rbenv | |
# Add the following to your .bashrc | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
# Install ruby-build | |
$ mkdir -p ~/.rbenv/plugins | |
$ cd ~/.rbenv/plugins |
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
$ wget http://redis.googlecode.com/files/redis-2.4.8.tar.gz | |
$ tar xzf redis-2.4.8.tar.gz | |
$ cd redis-2.4.8 | |
$ make | |
# Start the server | |
$ src/redis-server |
OlderNewer