懸梁刺股
Literally: to tie (one's hair) to the rafters (so that if one falls asleep, one will be awakened), and to prick one's thighs (in order to stay awake)