The Hagakure (Shambhala 2014) teaches a technique to stop yawning: pushing upward on your forehead and/or licking your lips. The book has other deeper insights and inspires both these posts and my philosophy.