平時不燒香，臨時抱佛腳

Proverb

 * 1) to not make adequate preparations beforehand and do something hurriedly only at the last minute