Can't believe I'm the first to mention (in my mind) the most famous of all, the Konami Code:
up, up, down, down, left, right, left, right, B, A, , *Select, Start
* if i remember correctly you added the select into most games when playing two player.
I did see someone mention Contra but they didn't give the code.