Telling myself: "There will be better days ahead". Repeating that motto in the darkest moments helped a bit.
Reading the stories of people who experienced depression but pulled through.
And lastly, keeping busy. It's not ideal, but doing anything that requires focus kept me from introspecting. And that ended badly generally.