I bulged a disk in my back, new job, no health insurance. My boss was a friend and knew I was a weirdo. I would bike (!) to work, take a keytip of ketamine, program for about an hour, lay down, do a gravity inversion (had one shipped to the house we were using as an office), do another minimal key, I could get three, maybe four of those out of a day.
I hate the effect of opiates except for the part where they make physical pain go away, and even if I had a doctor at the time, to get a scrip, it was a non starter for getting work done.
Worked out ok, still use a standing desk, lift weights, my back has been at least nominal every since, no surgery. I don't recommend it, the bulging disk part, and I'm not here advocate for off-label use of controlled substances, ketamine is habit-forming and can be quite destructive. It was effective however.