Copying Multiple Files using SCP

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

January 20, 2011 · 1 min · 138 words · cliper

Backup/Restore mysql databases using mysqldump

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

December 8, 2010 · 1 min · 103 words · cliper

Excluding files and folders with tar

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

December 8, 2010 · 1 min · 91 words · cliper

Get Magento's database configuration

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

December 7, 2010 · 1 min · 102 words · cliper

Rebuilt Magento Indexes in terminal with php-cli

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

December 7, 2010 · 1 min · 96 words · cliper

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.

December 6, 2010 · 1 min · 76 words · cliper