I hope the surgery went well and I wish you a speedy recovery.
As for the online courses, EdX and Coursera are my preferred platforms. They have tailored courses from top universities around the world, free of cost. You can even pay a minimal amount and get a certificate for it, but it isn't mandatory. I hope it helps.
As for writing, you're only a pen and a paper away (I prefer it old school).