You print off this article: How to Get Through a Workday on No Sleep — Science of Us and you follow it step by step, hour by hour. Really. It has a great rundown of all the things you should do and why.
Of course the best thing is to do what it takes to get some sleep the night before. Or call in sick and get some rest. If neither of those options are available, what you read in that article may be the thing that saves you.