How to survive an earthquake