myocardia is probably spot-on about this, but I"ll venture a thought about it.
Radio Shack and your local electronics "jobber" warehouse-store offer a solvent generally called "electronics cleaner" or "electronics contact cleaner" in either a bottle or a spray-can which has a brush nozzle that only needs to be soaked with the stuff.
If you have a soft sable paint-brush, you can dab your gold contacts with it -- the gold fingers of a RAM module, the RAM slot, the gold contacts of the CPU. I could risk some criticism on this point, but you can also dab your socket pins (spring-pins).
If you want to "dry off" the part after applying the cleaner, use the ubiquitous "canned air." Be especially careful using ANYTHING to touch the socket pins. Those things have to lay down in the socket a certain way, and have a "nipple" (the "pin" part) which is most likely to fit a dimple in the matching CPU gold contact point. You're not likely to break the pins with a brush, but they can be moved out of alignment. They can also become bent. And fixing bent pins creates a risk that they might be broken.
Finally, you don't want to leave any loose brush-hairs on the CPU surface, the socket or anything else that's being cleaned. So . . . the canned air/blower.