1. never resign before getting a better job/pay. Think about your career path.
2. Any miserable thing happens could be tolerated by adjusting perception.
3. Always weigh pros and cons. If the cons is your emotional then it’s not a real cons, just adjust your perception then it will become normal (human behavior).
4. Always listen to your boss even they are stupid and maybe they have the other smart side hidden that you don’t see. Try to learn from them and discard the bad thing.
5. Wake up each morning and feel thankful that you still have a job even you feel you are working among stupid people.
6. Try to change your perception and accept people who they are. Try to look for good thing hidden in them.
7. Remember bad people will not hide themselves forever eventually it will reveal but don’t sacrifice yourself for this.