Check partition label using disk -l make sure hfstools / hfsutils installed on Ubuntu run command as root: fsck.hfsplus /dev/sdab2
Script to Remove Mails from Postfix Queue based on keyword.
This perl script will bulk remove emails from the Postfix mail queue based on a keyword, email domain, or email address. The script came from this blog post: #!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!”; @data = qx</usr/sbin/postqueue -p>; for (@data) { if (/^(\w+)(\*|\!)?\s/) { $queue_id = $1; } if($queue_id) […]
Repair Plesk Mailboxes
~# /usr/local/psa/admin/sbin/mchk –help Restore settings for all mailboxes. Usage: /usr/local/psa/admin/sbin/mchk [OPTION] OPTIONS: –without-spam restore all settings except for SpamAssassin configuration –with-spam restore all settings –spam-only restore only SpamAssassin settings Usage example: ~# /usr/local/psa/admin/sbin/mchk –with-spam
Postfix Remove Emails
To specific address postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } / user@domain\.com/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –
Fix file & Directory Permissions for a PHP Website running as a FastCGI Application
find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;
WINDOWS 7 USB/DVD DOWNLOAD TOOL (WUDT) IS UNABLE TO COPY FILES
I used the following commands to fix the problem: diskpart list disk select disk # clean create partition primary select partition 1 active format quick fs=fat32 assign exit I then re-ran the tool without any errors.
Mainboad Change on Windows 7 PC causes BSOD
Even though Windows 7 is very hardware compatible, upgrading to a new main board can lead to you to an unbootable OS. The problem: Incompatible drivers for IDE/SATA/AHCI/etc The Fix: Load the new chipset & SATA drivers through the Windows 7 repair function then select the Command prompt. Type the following command. dism /image:c:\ /add-driver […]
Plesk 11 – Running PHP site under FastCGI does not connect to remote sites with fopen()
After creating a new CentOS 6.3 VM for a client, we installed Plesk 11.04 and found that all sites running PHP as a FastCGI application were unable to access other sites using fopen(“$url”). This affected Joomla, WordPress and other modules which also access other sites. The FIX! CentOS running with SELinux Enabled was the problem. […]
Plesk 10.4.4 not displaying domains,. Internal Error
On the Domains list page in Plesk I recently ran into the eror of it not displaying the list of the domains and produced an internal error. Here is the fix. http://kb.parallels.com/en/112887
Display all cron jobs for all users on a server
Run this command as root: for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done