Mac : How to Page up and Page down in terminal?

Using the full size desktop Apple keyboard, simply hold down SHIFT key + Page up or Page down. With a MacBook Pro, there is no such keys (Page up/Page down)… Just hold down function key ( fn ) + SHIFT + ARROW UP and/or DOWN.

Category: Mac

PHP : Set upload file size

To increase (or decrease) the size of allowed uploaded file size with PHP, using php.ini or .htaccess file, just add or edit the following values : php_value upload_max_filesize <VALUE> php_value post_max_size <VALUE> Just add the amount instead the <VALUE> tag.  Let’s assume you want to allow 300 megabyte file size to be uploaded to the… Read More »

Zimbra : Initializing ldap…failed.

When installing and configuring Zimbra for the first time on RHEL/CentOS 6, it return that LDAP failed to initialize and then the config script exit. The log file probably indicate the following error : Initializing ldap… *** Running as zimbra user: /opt/zimbra/libexec/zmldapinitsudo: sorry, you must have a tty to run sudo IO::Socket::INET: connect: Connection refused… Read More »

VMware Server : Performance tweak tips

VMware Server performance can be improved in so many ways… there are some recomendation that I’ve discovered when I was using this product at large before moving them to ESXi : Use preallocated virtual disk Use as less virtual hardware as possible – do not add unneeded hardware Use ext4 or XFS filesystem (if host… Read More »

Vim : how do I search and replace text

Do the following to find and replace text string in a whole file using the Vi text editor : 1. Enter in command mode by typing ” : ” 2. Your command should look like this : :%s/search_for_text/replace_with_this_text/g NOTE : To search & replace a string containing slashes ” / “, use a coma ”… Read More »