I always found a couple of red bulls and a pack of marlb reds could get me through a long day/night of essay writing. If you don't have the motivation to do the work in the first place, though, then you're in a bit of trouble. Red bull will just keep you awake to get distracted by other things.