I've done this with school, and with work in the past. I used to stay up far too late, and these days I have trouble sleeping.
It sucks, and I wish you luck. Just try to stay busy.
The worst was when I worked midnights during college, and was up for 36 hours straight. I fell asleep at the movies, because my friends talked me into going.
The other week, I only got two hours of sleep the night before the last day of E3, and walked around the convention center exhausted all day. I just couldn't sleep. Then, afterwards, it was straight to the airport for an all-night flight home. I maybe got an hour and a bit on the plane, in small chunks.