Set the alarm to wake you up earlier.
OR
If you don't need to shave that day, then skip it.
OR
Shave the evening before.