Copying Multiple Files using SCP

A short example of using scp to copy one or more files between Linux machines.

Backup/Restore mysql databases using mysqldump

A quick command-line example for backing up and restoring a MySQL database with mysqldump.

Excluding files and folders with tar

A quick example of excluding specific files or directories when creating a tar archive.

Get Magento's database configuration

A quick Magento snippet for reading database connection details from the application config.

Rebuilt Magento Indexes in terminal with php-cli

A quick command-line reminder for rebuilding Magento indexes with the PHP CLI.

Get the offset (index, array key) of an array in PHP

A quick PHP example showing how to access both the array key and value while looping.