The three biggest tips I can give you are as follows in order of importance
1. Buy a bike, like a road bike, and ride it all the time as soon as the doc ok's it.
2. DO NOT SKATE UNTIL CLEARED BY THE DOC
3. (not nearly as important as the first two) Find a hobby to pass the time faster so you don't get super bummed, I took up wood working, it was super fun, still do it sometimes, it just makes that 6 months much better.
I've had two surgeries myself and I really cant stress enough how much a bike can help you, I know it can be expensive to get one but trust me its more than worth it, I honestly fully credit my bike as solely the reason I am still able to skate regularly.