a friend asked me that question, I did answer but I don't think it can help right away. one of the factors that help you to feel better is time.
my answers were also very generic, it sounds good but I myself can't practice it thoroughly. Maybe my friend can ?
Here are they
think 'bout how you would do it differently next time
take time to feel sux
life is about 1 thing, move on
And another thing that I just thought 'bout, yep, work is serious. so take it seriously. and also remember that work is just 1 part of your life. be serious and be fun.