Unlimited energy:
Reset the Commodore 64 and type I HATEBROS on the BASIC screen. Note: There are two spaces between I and H. Move the text to the bottom of the screen and use the [Inst/Del] key to place the S in the lower right corner of the screen. Move the cursor back to its original position, below "READY", and load the game. The program will check video memory for the presence of those characters to enable unlimited energy. 

Unlimited lives:
Load or reset the game, then execute the following BASIC command before running or restarting the program. 

POKE 50374,173