Install SSL with Let’s Encrypt on Centos 7

Let’s Encrypt is an open certificate authority developed by the Internet Security Research Group (ISRG). Certificates issued by Let’s Encrypt are trusted by almost all browsers today. And what’s great is that it is free. This tutorial provides a step by step instructions about how to secure your Nginx server with SSL. Install Certbot Certbot…

Read More

Docker-compose Tips and Tricks

Docker-compose is a very useful tool when you need to orchestrate multiple containers. Here are some useful tips and best practises. Completely rebuild container To force a rebuild containers, do it like this:

Read More

MySQL Normalization

Database normalization is a process of organizing fields and tables which reduces dependancy of data and redundancy. There are 6 normal form. In most cases it’s only need 3 normal form to achieve normalization. What normal forms are? 1NF (First Normal Form) Rules Each table cell should contain a single value Each record needs to…

Read More

SOLID principles in PHP

SOLID Principles is the rules that avoid bad design and have a clear concept for developing software in a proper way.

With the bad software design, the code can become inflexible and small changes can result in bugs. For these reasons, developers should follow SOLID Principles.

Read More

Git commands

Pull and rebase

Commit difference between branches

Diff between branches

Diff of a file between branches

Overwrite remote branch with local branch

Useful when it’s need to do restore from local branch. Commits count between branches

–no-merges parameter allow to count without merge commits Get files from another branch…

Read More

Linux commands for WEB developers

Copy a folder

What port is used?

Find and delete files greater than a given size

Find a file

Sorting ls command output by file size

to reverse order use -r option. Archive directory

Copy files from remote to local with Rsync

File permissions

Change permission of…

Read More

Installing Nginx + PHP-FPM + MySQL on OS X

Setting up working environment is the first step you need to do. This will be your local web server for programming in OS X with PHP, Nginx and MySQL (also known as LEMP). Let’s make it as ease as possible 😉   What we will do Install xcode (for license) and brew package manager (as…

Read More

How to install free SSL certificate on Nginx with StartSSL

First, we need issue SSL certificate. is a great way to install free signed SSL certifacate. So, let’s signed up on with browser authenticate. Then, go to control panel ( and click on Validations Wizard tab. Select Domain Validation option. Next, enter your domain name: You will be asked to verify your domain…

Read More