The biggest cheat code on the planet is the ability to be in a good mood regardless of what's going on in your life. Not letting external events dictate how you feel is a skill we can learn. If you can train yourself to be in a bad mood you can train yourself to be in a good one.
Understand: people will constantly attack you in life. One of their main weapons will be to instill in you doubts about yourself. They will often disguise this as their objective opinion, but invariably it has a political purpose, they want to keep you down.