It can be difficult to stay motivated. Fortunately, there's other people's hate.
When you hear someone trash you or people like you, fight the urge to take it personally. Instead, use the energy of your reaction to get difficult things done.
When your resentment is replaced by a feeling of accomplishment, take a moment to feel thankful for the person who gave you their power.
Then, do what they're too weak to do: forgive them.