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

Capybara default driver

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

Jenkins

http://pkg.jenkins-ci.org/debian/

install

 

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…