That's a questions a lot of us are still trying to manage. It takes a lot of discipline on OUR part. Medicine alone isn't going to cut it.
Some suggestions would be to keep a low profile from big social activities while you're feeling this way. You know...anything that can cause added stress your way beside the normal in and outs of the day.
Try to count to 100 before you speak. lol ... I know that is not realistic but give it a little time before you react to anything that rubs you the wrong way. We tend to take things too personally when we are feeling this way and not too many people understand that.
Try to focus on activities that keep you calm or that you enjoy. I love to paint or craft and I ask my family to give me quiet alone time to concentrate on that when I'm feeling that way. Usually they are more that happy to accomate me.
Get out of the house for a bit each day for a nice walk by yourself. It will give you time to breath and think about things a little more clearly.
And...if you do snap...apologize and remind people that you're not yourself right now.