When I was a child, I read about Gauss, Abel, and a bunch of people who were good. It killed my braggadocio in the egg.
When I did Judo, I've always sought to fight the best ones (bigger, aggressive, technical). In football too, I always went for the best technical players who can humiliate anyone. The price to pay was to have people laugh when you're thrown in the air.
In my experience, arrogance can come from truly being great at something, but I mostly witnessed it in people who were lacking and trying to protect their ego. The usual advice is to let go of the ego, but maybe instead of "killing your ego", you can "redirect it". Instead of trying to protect your image of competence, you can wire your ego and feed it on the idea that you're diligent. If you tie your ego to the idea you're diligent, you will try to stick to that image of a diligent person.
A diligent person seeks people with different angles to a topic to know everything there is to know about it. You trick yourself into the pursuit of a truth, instead of making it a conflict between two persons.
Arrogance also manifests itself in sarcasm. In a technical dialogue, an arrogant person will often use sarcasm. This is lame. One way to limit this is to think about what you're about to say really hard and weight the amount of information it contains. Is it a snarky remark about how Windows sucks? Is it something you're repeating after reading a blog post? Do you really master what you're talking about? Are you pissing on a language quirk or bottleneck you haven't even reached? Is that really a technically sound argument? How much do I know about this?
One way that helps is to imagine you're not having the argument with the person you're having it with, but the world's most renowned expert on the subject who forgot more about pretty much any topic than you'll probably know. Chances are you won't present the same arguments because you know they are weak and you know that because you know you don't know as much as you think (hopefully). This also helps avoid being a douche and a bully (would I act the same way with a guy who can break me in half? If not, I'm probably being gratuitously disrespectful). Would I act this way with someone who knows more than me? This question will shift the attitude and make it the same: one of curiosity, one of a seeker. It will allow learning and teaching at the same time, with the same ease.