How To Disable IPv6 In Ubuntu 10.04 Lucid Lynx

I'm not sure if IPv6 in Ubuntu 10.04 Lucid Lynx is still causing issues with the Internet connection being slow and so on, but in case it does here's how to disable it.