How to persist when all seems bleak

What to do if everything just seems to be working against you?