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
# https://github.com/mpapis/rvm-with | |
require "rvm/with" | |
Bundler.with_clean_env do | |
RVM.with "in ." do |r| | |
puts r.execute "bundle install" | |
puts r.execute "rake db:create db:migrate db:setup" | |
end | |
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
# rails repo location | |
https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | |
# relative app path | |
lib/templates/rails/scaffold_controller/controller.rb |
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
# after opening a new terminal on a fresh boot | |
/home/nick/.rvm/scripts/base:source:97: no such file or directory: /home/nick/.rvm/initialize | |
/home/nick/.rvm/scripts/base:source:106: no such file or directory: /home/nick/.rvm/selector | |
/home/nick/.rvm/scripts/base:source:107: no such file or directory: /home/nick/.rvm/selector_gemsets | |
/home/nick/.rvm/scripts/base:source:108: no such file or directory: /home/nick/.rvm/selector_late | |
/home/nick/.rvm/scripts/base:source:109: no such file or directory: /home/nick/.rvm/selector_parse | |
/home/nick/.rvm/scripts/base:source:118: no such file or directory: /home/nick/.rvm/functions/logging | |
/home/nick/.rvm/scripts/base:source:118: no such file or directory: /home/nick/.rvm/functions/db | |
/home/nick/.rvm/scripts/base:source:118: no such file or directory: /home/nick/.rvm/functions/support |
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
<% | |
title @article.title | |
%> | |
<% cache @article do %> | |
<%= render "article_details", article: @article %> | |
<%= markdown(@article.article_markdown) %> | |
<% 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
# Account.where(id: 3).entries.first | |
SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 3 | |
# Account.find(3) | |
SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 3]] |
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
group :development do | |
gem "guard", ">= 2.1.0" | |
gem "guard-livereload" | |
gem "rack-livereload" | |
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
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/sda1 7.5G 6.7G 469M 94% / | |
udev 368M 4.0K 368M 1% /dev | |
tmpfs 150M 784K 149M 1% /run | |
none 5.0M 0 5.0M 0% /run/lock | |
none 375M 260K 374M 1% /run/shm |
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
# Common assets to include in the path. | |
config.assets.precompile << Proc.new { |path| | |
if path =~ /\.(eot|svg|ttf|woff|png)\z/ | |
true | |
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
# Trigger ~/.bashrc commands | |
. ~/.bashrc |
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 reinstall ruby-2.1.0 --debug | |
ruby-2.1.0 - reinstall | |
ruby-2.1.0 - #already removed src | |
Log prefix: /home/nick/.rvm/log/1388426228_ruby-2.1.0/ | |
Log filesystem: ext4 | |
Log max name length: 250 | |
Log file: /home/nick/.rvm/log/1388426228_ruby-2.1.0/remove.rubies.log | |
[2013-12-30 12:57:08] __rvm_rm_rf | |
__rvm_rm_rf () | |
{ |
OlderNewer