Tag Archives: shell

Best Macbook Pro with Retina Display 13″ case – Clear mCover Hard Shell Case

I’ve owned my 13″ Retina Macbook Pro for well over a year now and during that time I’ve tried many cases in an attempt to keep scratches and dirt off it. There’s no doubt that you can go to places like eBay and pick up a case for well under £10, but I’ve found most of them don’t work very well. They either fall apart after no time at all, or actually end up putting scratches on your device that weren’t there before it was fitted!

However, I did come across this case – the CLEAR mCover Hard Shell Case for 13-inch MacBook Pro with Retina Display. I’ve had it on my Macbook for around 3 months and I have to say it is without doubt the best case I’ve bought so far.

The case snugly fits on your Macbook and is almost completely see-through – so much so that many don’t even realise my Macbook has a case on it. The case is sturdy and will definitely be strong enough to protect your Macbook from a small drop or from being scratched.

The biggest selling point for the case by far and away, though, is the feet that are fitted to the bottom of it. They allow the back of the Macbook to be raised slightly, which makes it much more comfortable to type longer documents (particularly if you’re used to working on a desktop keyboard). It works seamlessly and is a very neat little design feature.

You can buy the case now from Amazon.

It’s also worth noting that they have Macbook Air 11 inch and 13 inch versions available too, as well as 13″ Macbook Pro (non-retina) solid colour variants.

Postfix/amavis workaround: “delivery temporarily suspended”

I’ve put together a quick workaround for a long-standing problem with my server, whereby every so often my mailserver will crash (usually every week or so). I discovered the problem relates to amavis crashing – but as yet I have not found a solution to the problem.

The shell script I’ve put together below (with the help of this) checks the status of the amavis service. If it’s down, the script will bring it back up and then restart postfix to resume deliveries.

I’d suggest running the script every 5 minutes from a cron job (use crontab -e to modify to your cron jobs).

#!/bin/bash
#
# Author: Alex Ward
# This script was created to find workaround to a problem where postfix would fail
# if amavis stopped on ISPConfig / Debian. This simple script will check the
# uptime of amavis and, if it is down, start it and then restart postfix.
# This script can be set up in a crontab.
#
# Built with help from
# http://www.akamaras.com/linux/linux-script-to-check-if-a-service-is-running-and-start-it-if-its-stopped/
#
#
version=”1.1″
#Changelog: Implemented version number and prepared for crontab logging.

service=amavis

echo ‘==========================’
echo ‘MAILSERVER SYSTEM CHECKUP!’
echo ‘==========================’
echo ”
date
echo “Version: $version”
echo ”
echo “Checking $service status…”
if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
then
echo “$service is running! No action required.”
else
echo “$service is DOWN! Rectifying this…”
/etc/init.d/$service start
postfix stop
postfix start
fi

echo ”
echo ‘=====================================================================’
echo ”
#END

You can download a copy of the script here (right click, save as).

It isn’t a solution to the problem – but until I find the solution, this will at least stop the problem from killing off mail deliveries.