From http://wpsnipp.com/index.php/functions-php/remove-generator-from-head/