First, I purge the keg with CO2 by pressurizing it and then bleeding the pressure release valve. I do this once, then repressurize, wait a few minutes and bleed it again. This removes the oxygen from the keg.
Then, if I want to burst carb, I'll charge it to 30psi. Agitate for a few minutes...