The art of the almost all-nighter