I don't know how to hack his chances of survival but i would start to make the time he has left really nice and good. If he has programming skills why not start a project/hackathon maybe some ctf's or a game so you can just hang out and brainstorm on an idea. How about a little lan party with his best friends. Or start some tv show e.g Lost. Good luck.