The Dichotomy of Control
Divide everything into what is up to you (your judgments, desires, aversions, and actions) and what is not (your body, reputation, property, and other people). Invest your emotional stake only in the first category, treating the second as borrowed and outside your jurisdiction, and you become immune to frustration and disappointment.
