I was given a tip to stay awake a while back: hold your breath for a little while. Apparently this well known for many years but I had never heard of it.
Seems to work, but this was in the context of driving which I do not recommend, having fallen asleep at the wheel once and woken up rally driving down some paddock.