Don't lie about what you know. I.e. it's better to say "I don't know but I can find out." rather that pulling something out of your ass.
Don't complain about anything unless you can also offer a solution to the problem.
Do good work. Figure out what the company considers "good." I.e. some companies value speed of development, others value high-quality.
Never, ever take offense when someone points out a bug in your code. If there's a 'real' bug thank the person who found it, after all they are improving on your work. If it's a not a real bug work with them to figure out why they were mistaken (bad documentation? Not trained enough on what it's supposed to do?)
Social skills help. But don't be a phony.
Manage up. If you think you deserve something from your boss, and they won't give it to you, work out a plan to get it. (If you want a promotion, work out with your boss what he needs to see before he can promote you. Work out a plan with you boss to meet those goals.)
Hopefully you get the idea. Basically you should always try to improve the situation for everyone, not just yourself.
Until you reach middle-management. And then the knives come out and it's best to be a complete sociopath.