i.e. pull over in a place which is safe for both vehicles and for the officer on foot, keep hands visible all the time, turn on dome light, put keys on dashboard, and be polite. Also I tend to announce any moves, like "my wallet is in my back pocket, reaching for it with my left hand", which is overly cautious, but subtly communicates to the officer that you are familiar with police procedures and concerns. You can usually see him visibly relax, at which point it's likely the interaction will be more pleasant. Don't volunteer more information than necessary, but answer questions politely and clearly. (usually, it's just "license and registration." and then "do you know why I stopped you" "no officer"...)
I've gotten >120mph written at 80mph in a 70mph by doing this, several times (I-5 + V8 + empty road...), which can be traffic-schooled. I don't care about a $150 ticket, I care about potentially getting the car impounded for reckless driving, or a vehicle search, or points.