sich die Hörner abstoßen

Etymology
lit. 'to shed one's horns', to leave one's savage self behind, a reference to, a student initiation ritual common in Europe until the end of the 18th century.

Verb

 * 1)  to sow one's wild oats (to spend a period of one's youth behaving irresponsibly)