si la vida te da limones, haz limonada

Etymology
lit. 'if life gives you lemons, make lemonade'.

Phrase

 * 1)  when life gives you lemons, make lemonade