From what I've learned pulling all nighters, caffeine, caffeine, and more caffeine. I never get into my bed, just make it and sit on top of it, keep the lights on around me. My biggest tip would be to keep occupied, find fun things to do, watch videos/movies, paint your nails, read, whatever. If you reach that point where you can't seem to keep your eyes open, what I do is fill a sink with super cold water and just dunk my face in, that never fails!