ah yes, the graveyard shift. where I got my nickname actually. every week, the place I worked would post available overtime on the bulletin board. It was first come first served as far as signing up. I used to snatch up four or five graveyard shifts for overtime before anyone else could get them, hence they started calling me the 'graverobber'. lol. I actually gave some of it back to ppl who really needed the money. I was doing it for extra cash to spend on shit.
As far as advice, listen to music if you can preferably in ear buds, nice and loud. depending on your activity, get up and move around every so often to keep the circulation going. again, depending on your activity at work, go outside for fresh air as much as possible. Also, hanging out with someone else on the same shift and bullshitting can make time pass.
I was actually on graveyard shift for three years prior to the time I'm talking about and I got so used to it, I preferred it over daytime. I worked 11pm to 7am. Big breakfast, couple of beers and sleep from 9am to 5pm. awesome.
good luck!