mmm...
not much comes to mind.
Stop smoking.
Brace your body in the area of the pain with a pillow or towel if you need to cough, may help with pain.
Take adequate analgesia rather than being 'brave / idiotic,' take painkillers regularly for a few days.
you know the pain will be there, so don't wait for the pain to arrive - it makes sense to take regular pre-emptive analgesia. Ibuprofen and paracetamol work well together and will not bung you up like codeine
Avoid doing anything that makes it worse.
I have had broken ribs, bloody hurts.