Install ImageMagick with WEBP on Ubuntu 18.04

echo “deb-src 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
tar xf ImageMagick.tar.gz
cd ImageMagick-7*
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)



Sidekiq worker and generate PDF


React onClickOutside

Capybara default driver

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




How to set Google Chrome as the default browser?

You should have in the ~/.config/mimeapps.list file the following lines in [Default Applications] or [Added Associations] section:


Forward Port 80 to Port 3000

You don't have to run your Rails app as root to access it on port 80. Instead, run it normally (on port 3000) and forward port 80 packets via iptables…