Actually building something helps a ton: either a project at work, or through hobbies like woodworking, writing, art, comedy, etc.
And the geographic hack is great advice. I moved to a new city following a breakup a few years back and it did wonders for my mental health.
I also recommend journaling: Getting thoughts out of your head and onto a page can provide a sense of closure.