It's a famous saying of Major General David Farragu.
His fleet was torpedoed at the Battle of Mobile. At the critical moment, he shouted "Fuck the torpedo, full speed ahead" and saved the whole fleet.
This sentence is also widely known and frequently appears in popular songs and movies.