Enable and disable Xdebug quickly on OS X homebrew php 7.1

Xdebug is a powerful tool for debugging PHP code, but it can be a memory hog when it is continually turned on. Xdebug can be quickly enabled and disabled by creating simple custom scripts. Download these shell files on your Mac, make them executable and you are good to go! Now run enable-xdebug on your […]

Shell script to restart MySQL automatically when it shuts down.

A dirty hack but essential at times, MySQL server consumes higher memory if not configured correctly and due to which the MySQL service is terminated by the OS to save itself from crashing under high traffic. A simple shell script can be used to restart MySQL service when it terminated. View the code on Gist. […]