Pour yourself a beer and reflect on how crazy it is that 1) modern life actually needs knowledge about stuff like "elliptic curves over finite fields" and 2) you are lucky enough to make a living thinking and teaching about them. Works for me every time.