One of our production web application runs on a dedicated node in DO (Digital Ocean) cloud server. This web application has following services running.

  • Elixir Phoenix API server
  • React.js client server
  • Redis caching server
  • Bots (Slack)

Few days back, Digital Ocean triggered an urgent maintenance for Meltdown and Spectre Mitigations resulting into a reboot of our PROD server. DO did alert us in advance by sending an email notification with schedules. But seems we missed these schedules...

Read complete blog post

Following is an handy list of frequently used Linux (Ubuntu flavour) console commands

Find Files

find . -name '*.cnf'
find . -name 'hello.workd'

The dot here represents all files and folders in current path

Mysql DUMP - Import and Export

1) Export

mysqldump -u username -p database_name  file_name_to_save.sql

2) Import

mysql -u username -p database_name < filename.sql

Install LAMP on Ubuntu

sudo apt-get install tasksel
sudo tasksel
sudo tasksel install lamp-server

Install Apache2 on...

< filename.sql

Read complete blog post