Install ImageMagick with WEBP on Ubuntu 18.04

echo “deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties” | sudo tee a /etc/apt/sources.list

sudo apt update
sudo apt install libwebp-dev
sudo apt build-dep imagemagick
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick-7*
./configure
make
sudo make install
sudo ldconfig /usr/local/lib

convert -version

# Check “Delegates” line for supported file types;
# You can see more detailed info about supported types by running:
identify -list format

Migration Rails DB from Heroku To AWS EC2(VPS)

HEROKU

EC2(VPS)

Sidekiq worker and generate PDF

source: https://gist.github.com/juggy/977181

React onClickOutside

Rspec DatabaseCleaner configuration

 

Filestack API: create file when base64

 

Capybara default driver

Буде завжди запускатися браузер, якщо задати config.default_driver (це також збільшує час проходження тестів)

Custom exceptions in Ruby On Rails

config/application.rb

app/classes/exceptions/custom_error.rb