GoAccess - Web Log Analyzer

GoAccess is an open source real-time web log analyzer I have been using this application for years to analyze log files from apache web server.

October 30, 2025

watch - Repeat Command Every nth Second

Repeat a command every nth second and show output. watch free -m Default interval is 2 seconds but can be changed with -n, --interval. watch --interval 10 free -m

October 30, 2025

git - Change Previous Commit

Don’t amend public commits Add staged changes to previous commit With no message change. git commit --amend --no-edit Changing the message. git commit --amend -m "an updated commit message" If you wish to open the editor for message. git commit --amend Running the last two with no staged changes will only edit the message.

October 26, 2025

sed - Remove Comment Lines

Removes comments # (results in empty lines) and empty lines from file in place. sed -i -e 's/#.*$//' -e '/^$/d' fileName Example Strips php.ini of all comments and all empty lines, perfect for diffing. sed -i -e 's/;.*$//' -e '/^$/d' php.ini

October 25, 2025