Sometimes an all-nighter is necessary (we've all been there), so here are a couple things that will help you make it through: breaks every 30 minutes for stretching and looking at something other than the screen.
Work in a well lit room (not like the picture). Healthy snacks - peanut butter
, nuts, raisins, etc. Lubricated sterile tears for the eyes. Good luck!