Shell Scripts

Block access to a domain

Block the web access to a domain. So if you navigate to this website on a browser you will get your localhost copy.

Edit the host file of OSX

sudo vim /etc/hosts

Add this lines

Compress files with gzip

Compress the Javascript and CSS files on the server for optimize web speed. It will be compressed into new files with a .gz extension. [ read ]

List files with options

List files on the current path on vertical display with invislible files, file permisions, owner and size in human readable format. [ read ]