Before you can say Jack Robinson.

Serious as a heart attack.

By the skin of your teeth (or seat of your pants).