I put together some tips on how to build up your mental stamina for an ultra marathon. This is by no means comprehensive but I have used each of these and it has helped me to work through more than one mental beatdown.
Made it a
Thanks for sharing this. Interesting and useful.
Spring- wishful thinking
This article from irunfar may be of value as well.