I stole this from someone's blog - cause it's faster than writing it myself:
Transfer your COLD homebrew beer into the keg, attach the lid, and add some CO2 to ensure a seal.
Lay keg on its side, crank your CO2 up to about 15-25psi, and roll/shake keg back and forth for 5-6 minutes or until you hear your keg stop “gurgling”.
Stand keg upright in fridge and remove the CO2 line and let settle for a couple hours.
After a couple hours select your desired pressure and set your regulator to that pressure. Let off any excess pressure that may be in your keg still, and attach the CO2 line.
Let is sit at this pressure over night, or about 24 hours, and your beer will be good to go.
Note: Before serving, you may need to lower the pressure (depending on what pressure you were carbonating at) to somewhere between 6-10psi so that you don’t just pour a big glass of foam.