Robpoyntz - robpoyntz.com

General Information:

Latest News:

Ubuntu and dnsmasq 1 Jun 2013 | 09:28 am

To disable dnsmasq in Ubuntu 12.04+: Edit sudo nano /etc/NetworkManager/NetworkManager.conf and comment out the line “dns=dnsmasq” in the [main] section: #dns=dnsmasq Finally, restart the NetworkManag...

Delete the nth line from a file 1 Jun 2013 | 09:25 am

To delete the nth line from a file in Bash: sed -i 'nd' filename

Decrypting Remmina Passwords 24 Apr 2013 | 09:35 am

This morning I was trying to change my password on a remote server, accessed using Remmina. My login password for this machine was saved in the Remmina config file, which automatically logs me in. Sin...

Binding the middle click event to a keyboard shortcut 25 Jan 2013 | 06:18 am

Just so I don’t forget how to do this: 1. Install xsel and xvkbd: sudo aptitude install xsel xvkbd 2: Add a keyboard shortcut (in Gnome, use gnome-control-center keyboard), with the command: sh -c 'xs...

Packaging files for deployment using Git 5 Jun 2012 | 09:59 am

I regularly need to move a number of changed files from staging to production server environments following change requests from clients. I’ll often be asked to add feature X, and this can lead to man...

Mentawais 22 Mar 2012 | 06:43 am

This year I was finally lucky enough to fulfill one of my surfing dreams – a boat trip to the Mentawais Islands. We were on board the “Naga Laut”, and had nine awesome days surfing Nipussi, EBay, Tele...

Validating image uploads with PHP 8 Dec 2011 | 09:09 pm

Ensure an uploaded file is an image with PHP

Javascript snippets 20 Oct 2011 | 05:13 pm

Today I had to convert a whole bunch of CSS colours from RGB(x,y,z) to HTML hexadecimal format. There are loads of these colour format converters on the web, and they all seem to do the same thing: in...

Preventing Googlebot from indexing your website 21 Sep 2011 | 05:54 pm

Ensure that Googlebot and other web crawlers never get to see your site.

MySQL and Negative Unix Timestamps (Dates pre-1970) 24 Mar 2011 | 12:20 pm

A quick how-to on handling pre-Unix Epoch dates in MySQL and PHP.

Recently parsed news:

Recent searches: