Try to treat frustrating situations as training—a way to tame your ego—to be more humble and more patient.

Start by getting plenty of uninterrupted sleep every night. It will make you less irritable and able to think more rationally. Getting a good night’s sleep makes almost everything easier. Your brain and your body will work better.

After that, it’s about having the right attitude—putting the situation into context by asking yourself some clarifying questions. Is the situation that’s bothering you really as bad as it seems? Could things be worse? Is there a method to the madness? Am I unfairly taking my frustrations out on someone else?