Get all upgrades:
At the controller menu in the pause menu, press Up, Left, Down, Right, Select, Start, Square, X, Circle, Triangle.
Invincibility:
At the controller menu in the pause menu, press Down, X, Select, Start, Right, Square, Left, Circle, Up, Triangle.