You've recognized that your behavior is problematic, which is already a good first step.
The obvious next step would be to change your behavior, but that can be easier said than done. In the heat of the moment we often forget what behaviors we intended to change and fall back into our old patterns.
But what you can do is to act as soon as you come to the realization that your behavior in a specific situation was wrong and that if affected other people negatively. This realization can happen immediately, or even days later. Whenever you do get this realization, apologize to the people you mistreated and make amends.
I take criticism badly
"I am sorry I flipped out when you criticized me. I thought about what you said and I think you were right. I am going to try to improve on that thing you mentioned."
Like to one up coworker
"Sorry for trying to one-up you there. I shouldn't have tried to steal your fire. I will try to remember that we are a team and not competing with each other."
I get mad sometimes if coworker don't take my suggestion
"I thought further about what you said about my suggestion. You might be right, it might not be such a good idea after all. Sorry for being so pushy about it."
Sometimes can be a ass without realizing it
"I hope what I said back then didn't come across as me being an ass again. I am not sure if that offended you, but if I did, I would like to apologize."
But that being said, I agree with the answer by Willy Wonka: Reading what anonymous wisecrackers from the Internet like me have to say is no substitute for personal assistance from a professional.