brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)
| gem 'factory_girl_instruments' |
| check file slave_running with path /opt/slave_running | |
| if timestamp > 3 minutes then alert |
Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.
plain Git, aka git://github.com/
Does not add security beyond what Git itself provides. The server is not verified.
If you clone a repository over git://, you should check if the latest commit's hash is correct.
| class ReduceValidator < ActiveModel::EachValidator | |
| def validate_each(record, attribute, value) | |
| return until record.errors.to_hash.has_key?(attribute) | |
| record.errors[attribute].slice!(-1) until record.errors[attribute].size <= 1 | |
| end | |
| end |
| Failures: | |
| 1) Pricing should require circle_vehicle_id to be set | |
| Failure/Error: it { is_expected.to validate_presence_of(field) } | |
| Expected errors to include "muss ausgefüllt werden" when circle_vehicle_id is set to nil, | |
| got no errors | |
| # ./spec/support/model_macros.rb:9:in `block (2 levels) in validates_presence_of' | |
| # ./spec/spec_helper.rb:114:in `block (3 levels) in <top (required)>' | |
| # /Users/andrew/.rvm/gems/ruby-2.2.2@car_share/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale' | |
| # ./spec/spec_helper.rb:114:in `block (2 levels) in <top (required)>' |