Yaakov prepared himself to meet Eisav in 3 ways: A gift, prayer and prepared himself for war.
The yetzer hara can similarly be dealt with.
Gift - Give him a good nap or a delicious meal or new clothing. Tell him that he should now be satisfied and that you have to go to a shiur and he should leave you alone.
Prayer - Ask Hashem to help you overcome his tricks. No more getting down on yourself, no more gtting angry, no more wasting time etc. etc.
War - Sometimes when things are tough you have to say "Sir [or Madame] - I am sorry, I can't give in. I am going to destroy you now." Then go say five prakim of tehillim from the depths of your soul. Or learn a simman from Chiddushei Reb Aryeh Leib.
TKO! ["Technical Knockout" for those fortunate enough to know nothing about boxing].
Love and blessings!!!