Author Posts

How to add CSS styles to WordPress Admin Area

Manually White Label the WordPress Admin With just a few lines of code you can add your own custom branding to the back end of any WordPress site. Add the snippet of code below to your themes functions.php file to change the styling of the header & footer in the WordPress Dashboard.

Manage Trash From Command Line

Install cli-trash

Move file file01.txt in the Trash Can, use :

List all the contents of the Trash Can :

Rrestore a trashed file :

Remove all trashed files :

Remove files that have been in the trash more than a given number of days :

List more files on FTP

To increase the number of files that can be displayed per directory in Debian 8. The first argument is the maximum number of files to be displayed. The second one is the max subdirectories depth. LimitRecursion 5000 5

Then restart the ftp service

Unset ISPConfig 3 folder security

When a new site is created inside ISPConfig 3, the directories protected. Not even a root account can create folders or files in those folders. To bypass the protection, the protection attribute must be temporarily removed from the directory. This can be accomplished using the chattr command:

This will remove the protection and allow […]

Create and extract a .tar.gz archive using command line

To create a tar.gz archive from a given folder you can use the following command

This will compress the contents of source-folder-name to a tar.gz archive named tar-archive-name.tar.gz To extract a tar.gz compressed archive you can use the following command

This will extract the archive to the folder tar-archive-name. To Preserve permissions


Installing PEAR on Mac OS X Leopard XAMPP

XAMPP for Mac does come with PEAR but it is NOT configured. Update PEAR sudo su – [Enter root password] cd /Applications/xampp/xamppfiles/lib/php/pear sudo php pearcmd.php channel-update sudo php pearcmd.php install PEAR sudo php pearcmd.php install Log