git submodule add http://blah.blha.com/project.git a_project_path
git add *
git commit -m "adding a submodule"
cd a_project_path
git pull
| rvm reinstall 1.9.3-perf --patch falcon --force-autoconf -j 3 |
| # For context, this was inspired by the RubyRogues podcast #79 where they talked about | |
| # documentation in Ruby, and specifically grumbled quite a bit about the failings of RDoc. | |
| # | |
| # http://rubyrogues.com/079-rr-documenting-code/ | |
| # | |
| # As someone who's spent a lot of time using an IDE for programming C# and Java, I think | |
| # Ruby could do a lot better at putting documentation at our fingertips as we program. | |
| # | |
| # Maybe making the documentation part of the structure of the code would facilitate this? | |
| # |
| # replace a string occuring to all .yml documents, everywhere in history. | |
| # note: -i "" in sed was needed for OSX. Normally I would write 'sed -i -e "s/foo/bar/g"'. | |
| git filter-branch --tree-filter 'find . -name "*.yml" -exec sed -i "" -e "s/some-config-parameter/new-config-parameter/g" {} \;' HEAD | |
| # the above will create an internal git backup. Delete it with the following command: | |
| git update-ref -d refs/original/refs/heads/master | |
| # create a script with the following contents to change commiter/author name & email. | |
| #!/bin/sh |
| # From:http://alisnic.net/blog/making-your-ruby-fly/ | |
| # into ~/.rvmrc | |
| rvm_configure_env=(CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer") | |
| # and then | |
| rvm install 1.9.3-turbo --patch falcon | |
| # or better | |
| rvm get head |
| require 'factory_girl_rails' | |
| require 'rspec' | |
| require 'rspec-rails' | |
| require 'rspec/mocks/standalone' # => if factories need stubs (for remote services for example) | |
| include FactoryGirl::Syntax::Methods # make FG methods available at top level, so you can do `> create :user` | |
| def reload_factories! | |
| FactoryGirl.instance_variable_set(:@factories, nil) # => clear loaded factories/sequences | |
| # FactoryGirl.instance_variable_set(:@sequences, nil) |
| class Engine < ::Rails::Engine | |
| isolate_namespace | |
| config.generators do |g| | |
| g.test_framework :rspec | |
| g.integration_tool :rspec | |
| end | |
| end |
CREATE DATABASE mydb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;