A spiritual solution

When I go crazy, either with an impulse to act out, use, drink, etc., or with an emotional disturbance:

Firstly, I have to take my ordinary thinking mind offline. This means I disengage the engine from the transmission so it doesn't turn the wheels.

Secondly, I have to surrender to God's revealed will: the next right action. If it's uncertain, ask a grown-up.

Thirdly, I spend every spare moment and every spare atom of mental attention on prayer, meditation, and spiritual watching, listening, and reading.

Eventually there's a click, and I'm restored to sanity.