pull an all-nighter

pull an all-nighter (to stay up all night to do work; have an event/party that lasts all night) — просидеть всю ночь напролет; провести бессонную ночь (за работой, занятиями); || тусоваться/развлекаться всю ночь напролет

Example 1: I’m going to pull an all-nighter and finish this painting.
Example 2: I pulled an all-nighter to finish the assignment on time and ended up falling asleep in class the next day.
Example 3: I've got a 30-page paper due tomorrow morning, and I haven't even started writing it yet. I guess I'll be pulling an all-nighter! — Завтра утром мне нужно сдавать работу на 30 сраниц, а у меня еще конь не валялся. Похоже, буду сидеть над ней всю ночь напролет.

------
The term is popular with college students who spend the night before an exam studying (or 'cramming'), trying to learn a lot of material in a short period of time.

see also
[burn the candle at both ends]
[burn the midnight oil]