The Lord often humbles the vainglorious by causing some dishonor to befall them. And indeed the first step in overcoming vainglory is to remain silent and to accept dishonor gladly. The middle stage is to check every act of vainglory while it is still in thought. The end—insofar as one may talk of an end to an abyss—is to be able to accept humiliation before others without actually feeling it.
Even if we have innumerable virtues, the plague of vainglory is capable of destroying them all. If, then, we desire praises let us seek those which come from God.
We ought not to grieve or become irritated at anything because, by frequent vexation and irritability, we form the morally and physically very injurious habit of irritability, whilst by bearing opposition with equanimity we form the good and useful habit of enduring everything calmly and patiently.
You ask for some way of completely eradicating irritability. The inclination to irritability is given us to use against sin, and we were never meant to use it against our fellow men. When we do, we act contrary to our true nature.