a variation of the expression burn the midnight oil, meaning to stay awake late at night to work or study.