My solution, which I honestly believe leads to a much more happy life consist of two things:
Have a conscious relationship to what you can do something about. “Dog peed in laundry” is a great example. It’s already happened, there’s nothing I can do to change that, so I’ll just fix the problem. No point in getting irritated. The point is: Don’t get mad about stuff you can’t change/influence.
Always give everyone the benefit of doubt. If someone says something hurtful, like "your mother is a fat asshole™ ", I’ll try to think “maybe they have legitimate concerns about my mothers health, and legitimate concerns about how she’s treating others that I should bring up with her”, rather than immediately thinking they’re just trying to hurt me. That me be disproven in later conversation, but I believe it helps me treat others in a better way, and helps me be a more balanced person.