How to get human readable file size on Mac (/*BSD) terminal

Getting file size from OSX terminal is a pain. Actually it's a pain in all BSD variants. We normally use `ls -sh` on Linux derivatives. But this command on Mac doesn't return a human readable value.

Basic Database Design tips for Relational Database

A poorly designed database can make your life hell as a dev while optimizing an app. On the other hand, A good design can speedup your development process along with the performance of the app.

Determine MySQL Database Size

Sometimes we want a summery of size consumed by our databases in MySQL engine. This will list all databases that current MySQL user can access and list their size in megabyte.

How to personalize the fancy warning message of sudo

On that post I wrote about how to enable the warning message forever when using sudo. Now I'm going to write about how the change the warning message and personalize it on your own.

How to keep the fancy warning message of sudo forever

You may have noticed the warning message while using sudo for the first time on Linux. I think it's fancy to keep the waring message not only for the first time but for all the time, and surely I like it.

Recursively change permission of files or directories only (*nix)

The issue arises because we may not need the same permission for the files as like the directories. Take a website as example. Generally website files have 644 permission and directories have 755 permission.