臨陣磨槍

Idiom

 * 1) to prepare at the last moment