отладчик
npm i -g node-inspectornode --debug app.js| source 'https://rubygems.org' | |
| gem 'rails', '4.2.4' | |
| # Persistence | |
| gem 'pg' | |
| # Decorators | |
| gem 'draper' | |
| # Pagination |
| paper_trail - для ведения истории по сущностям | |
| hirb - красивое отображение результатов выборок из бд в консоли |
| PaperTrail::Rails::Engine.eager_load! | |
| module PaperTrail | |
| class Version < ActiveRecord::Base | |
| def moderator | |
| AdminUser.find(whodunnit) if whodunnit | |
| end | |
| end | |
| end |
| gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib |
| /.+@.+\..+/i |
| rvm install xxx --disable-binary | |
| Edit file | |
| nano ~/.ssh/config | |
| Host * | |
| ForwardAgent Yes | |
| Save file | |
| ssh-add ~/.ssh/id_rsa |
| # manpath: can't set the locale; make sure $LC_* and $LANG are correct | |
| sudo apt-get install -y language-pack-en language-pack-ru && dpkg-reconfigure locales |
отладчик
npm i -g node-inspectornode --debug app.js| User.where('email !~* ?', '.+@.+\..+').ids |