Do one's nut

Do one's nut: To lose one's head.