Skip to content

Shvek's Blog

My developments and life's work documented.

  • Home
  • About Shvek

Repair / FIX MAC HFS+ Partition on Ubuntu

Technical

Check partition label  using disk -l make sure hfstools  / hfsutils installed on Ubuntu run command as root: fsck.hfsplus /dev/sdab2  

August 11, 2016 / 0 Comments
read more

Script to Remove Mails from Postfix Queue based on keyword.

Uncategorised

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) […]

September 14, 2015 / 0 Comments
read more

Repair Plesk Mailboxes

Technical

~# /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

December 15, 2014 / 0 Comments
read more

Postfix Remove Emails

Uncategorised

To specific address postqueue -p | tail -n +2 | awk ‘BEGIN { RS = “” } / user@domain\.com/ { print $1 }’ | tr -d ‘*!’ | postsuper -d –  

July 4, 2014 / 0 Comments
read more

Fix file & Directory Permissions for a PHP Website running as a FastCGI Application

Uncategorised

find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;

June 18, 2013 / 0 Comments
read more

WINDOWS 7 USB/DVD DOWNLOAD TOOL (WUDT) IS UNABLE TO COPY FILES

Uncategorised

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.  

May 7, 2013 / 0 Comments
read more

Mainboad Change on Windows 7 PC causes BSOD

Uncategorised

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 […]

January 21, 2013 / 0 Comments
read more

Plesk 11 – Running PHP site under FastCGI does not connect to remote sites with fopen()

Uncategorised

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. […]

October 5, 2012 / 0 Comments
read more

Plesk 10.4.4 not displaying domains,. Internal Error

Uncategorised

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

May 31, 2012 / 0 Comments
read more

Display all cron jobs for all users on a server

Uncategorised

Run this command as root: for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

May 13, 2012 / 0 Comments
read more

Posts pagination

Previous 1 2 3 … 5 Next
Royal Elementor Kit Theme by WP Royal.