I've borrowed these words from Reader Wil's blog:
When things are spectacularly dreadful; when things
are absolutely appalling; when everything is superb and wonderful and
marvellous and happy - say these four words to yourself.
They will give you a sense of perspective
and help you also to make the most of what is good
and be stoical about what is bad.
This too will pass