Author: Rabin

How to Debug PHP Script From the CLI with PHP-XDEBUG

TL;DR Set your IDE to listen for incoming connections On the CLI set the session key,

Set XDEBUG configuration (can be set as environment variables or in-line parameters)

PS. set remote_host IP...

Upgrading Fedora Installation on DigitalOcean

I found this method works for me,

You may need to run restorecon -R / to fix any SELinux issues. Resource

ZSH Home / End Keys

Self note, Add this lines to ~/.zshrc


Matching non ASCII characters in NGiNX location

If you need to match a non ASCII string with NGiNX, and don’t want to use the encoded URL, you can use this trick,


gnuplot icon

Visualize real-time data streams with Gnuplot

Some times when I need to troubleshoot a problem, adding some visualization to the process can help a lot, especially if one need to correlate between 2 (or more) metrics in the data. But...

Run Command Before Starting SSH Connection

This a quick hack I found while I was looking to run a knock script before connecting to servers which I have the SSH service protected with a knock sequence. In my setup I...