DIR 01;35 # directory
In ~/.dircolors
function _table_tester() {
$header = array('Node ID', 'Title', 'Type', 'Terms', 'Created', 'Published', 'Sticky', 'Promoted');
$rows = array();
$rows[] = array(1, 2, 3, 4, 5, 6, 7, 8);
$rows[] = array(2, 2, 3, 2, 3, 3, 2, 3);
return theme('table', array('header' => $header, 'rows' => $rows));
}
$tables = _table_tester();
echo $tables;
ab -c 5 -n 10
http://httpd.apache.org/docs/2.0/programs/ab.html
See how much memory mysql uses with 100 connections.
http://www.omh.cc/mycnf/
The command to see the mail queue from ssh is:
mailq
To show messages awaiting delivery:
/usr/local/psa/admin/sbin/mailqueuemng
Another useful command to watch what emails are being sent and received in the mail log is:
tail -f /usr/local/psa/var/log/maillog
wget --quiet -O - http://ftp.drupal.org/files/projects/drush-7.x-5.6.tar.gz | tar -zxf - -C /usr/local/share
ln -s /usr/local/share/drush/drush /usr/local/bin/drush
drush
chown -R $USER ~/.drush/
As Root
Go to example.com
mkdir -m 755 drush-backups
chown -R $USER:psaserv drush-backups