stawać na głowie

Etymology
lit. 'to stand on one's head'.

Verb

 * 1)  to bend over backwards, to do one's damnedest