 Hydrate, for one thing. Just make sure you drink lots and lots of water. And if you're going to be around people, take a break, go to the bathroom, splash some water on your face so that that helps to make you less cranky. You want to do everything to be less cranky and take care of yourself physically so you don't get crankier. So the crankiness comes from getting dehydrated.