My all-time favorite poem is "If" by Rudyard Kipling. To me it summarizes the virtues of a resilient person, and how he/she would behave in difficult situations. I tend to recall lines from the poem based on the challenges I'm facing, whether it's in dealing with other people or with setbacks.
Whenever I miss a habit (or lose my writing streak), I think of these lines:
Or watch the things you gave your life to, broken,
And stoop and build ’em up with worn-out tools
My situation is almost never as extreme as what the first line refers to. A writing streak is not my life's investment. But if I should be willing to "build 'em up" again when the loss is great, then I should also be willing to do the same for much smaller setbacks.
I love the humility the word "stoop" refers to, and the previous effort put in the work we can conclude from "worn-out" tools.
There is no complaining. No whining. No bitterness.
There's acceptance and getting back to work. With focus, determination, and enthusiasm.
If we can master ourselves in challenging times, then we can either guarantee our success or our satisfaction in knowing that we've done all we can.
And if you've never read Kipling's poem, I highly recommend you give it a read now: "If" by Rudyard Kipling.