Latest Articles

Script to restart Apache when virtual memory too low – run every minute as cron job

Script to restart Ap...

#!/bin/bash free -m | grep Swap | awk '{print $NF}' > /tmp/swapused virt=`cat /tmp/swapused` if [ $virt -le 100 ]; then top -bn1 | mailx -s "Virtual Memory Low - Restarting Apache" test@askmatt.co.uk apache2ctl restart fi rm /tmp/swapused Restart apache...
Ubuntu additonal IP addresses not available after hard reboot – slicehost

Ubuntu additonal IP ...

Log in using ssh (putty) sudo ifup eth0:1 sudo ifup eth0:2 sudo ifup eth0:3 … and so on.
Why Ask Matt?

Why Ask Matt?...

It has come to my attention that this site is getting harder to find when you search for ‘ask matt’ on Google.  It’s pretty easy to find if you search for askmatt, but sadly some people insist on putting a space between the 2 words. Now searching...
Furniture@Work : Is furniture at works poor customer service ruining the reputation of your business?

Furniture@Work : Is ...

The UK’s least liked office furniture company Furniture@Work could be affecting the reputation of your business by advertising using your companies name and there’s nothing you can do about it. Google allow bidding on competitors name as long as the...
T-Mobile Broadband USB Stick 610 (Huawei E1750) Ubuntu

T-Mobile Broadband U...

The T-Mobile Broadband USB Stick 610 unlimited access gift pack for £44.99 has to be the cheapest way to get online anywhere for the next 3 months! Works with Ubuntu after you’ve run this script.
UK Second Hand Used Van Price Guide – Free to use

UK Second Hand Used ...

it is not easy choosing a van, there are plenty to choose from on ebay, but the prices can rise by 40% in the last 5 minutes of an auction. The table below is sorted by van make and model, it shows the lowest winning bid, highest winning bid and average winning...
Block countries using apache mod geo-ip / List of countries by fraud risk

Block countries usin...

Install mod_geoip sudo apt-get install libapache2-mod-geoip The installation process creates a file /etc/apache2/mods-available/geoip.conf , ignore it and put the config info in apache2.conf , it will make it easier to find later. Find these lines in /etc/apache2/apache2.conf <Files...
new van

new van...

The new van …   transit side door 1999 transit front