From the wonderful resource Ten Percent Happier, a lovely meditation and daily practice, and a real way to move away from beating up on yourself:
"...as you move through the day, try repeating the same phrase – “may I meet this, too, with kindness” – whenever you notice you are being hard on yourself, judgmental toward yourself, or unkind in any way. Often, learning to meet yourself with kindness can feel like the medicine your heart and inner life yearns for, especially if you’re used to meeting yourself with all kinds of judgment and past conditioning."