Honestly, just repeatedly telling myself that it (when the pain is excruciating) won't last forever helps me. It's almost like I have to really focus on the temporary nature - that today may be the worst it's ever been, but reminding myself that not every single day is like this.
Other than that, I lie in bed all day and try to sleep as much as possible.