This is a good practice, passed down to us from the ancients:
Remember that you are not alone in the world, and that without the help of Nature and of other people, you cannot exist. When you are feeling superior to others, then it is time to close your eyes and lift your mind up out of your body.
First, see yourself from above your home; now above your town; now your country. See how small you are?
Keep going: now see the Earth, your home in the heavens, from the edge of the solar system–a pale blue dot. Is your pride deflated yet? Keep going, for the best remedy to pride is humility, and the best way to cultivate that is to realize that everything you can see with your own eyes (the distant stars included) is so infinitesimally small that our entire galaxy pales in comparison to a grain of sand on the beach.