1. Recognise you have an emotion. 2. Give yourself some time to observe the emotion without judgement, It is OK to feel that way. 3. Realize you can experience the emotion without having to be reactive to it. The emotion is a given, your reaction is a choice. 4. Get back to work.
Another thing I find helpful is taking some prolonged exhale breaths to help your nervous system get out of its fight/flight response: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6037091/