When someone is nasty, rude, hateful, or mean with you, pretend they have a disease. That makes it easier to have empathy toward them which can soften the conflict.
Celebrate your successes. Find some humor in your failures. Don't take yourself so seriously. Loosen up, and everyone around you will loosen up. Have fun. Show enthusiasm. Always.