Hi Micro,
I got my death sentence early. I had no reason to believe I would survive past forty, and I almost didn't. I absolutely never expected to make it to the age I am now. And to still be relatively intact.
A death sentence can make certain things very clear. And with that clarity, and the realization that you have little to lose, you have the possibility to turn away from an ordinary life of social pressure and least resistance.
More practically, what do I hope I would do if I was in your shoes? (1) Set my sights on one or more "impossible" goals in alignment with the fact that I am still alive and, thus, must still have a purpose (2) Use prayer, diet (e.g., maybe http://www.pritikin.com/healthiest-diet/pritikin-eating-plan), visualization, belief change, (http://www.psychologytoday.com/us/blog/hide-and-seek/201205/mans-search-meaning and "alternative medicine" to give me the time and energy to move toward #1. (Consider Victor Frankel's "Mans Search For Meaning" reality, and how it was rather more depressing, and impossible, than anything you or I have to face.)
The point? Not to live forever, but to serve a higher purpose as much, and as long, as possible. To turn odds in your favor and, at the very least, to live your remaining time with fire in your heart.
If that doesn't appeal, or isn't possible, I would alternatively suggest you at least arrange your life to support what gives you the most joy/satisfaction during your remaining years. For myself, I found that skipping winter entirely, by moving to a tropical location, might not have given me any more years of life, but it did add at least 4-5 months of sunlight to my year. It was like I had 40% more year in my year!
You're going to have to find your own way, of course. But I heartily propose you minimize doing meaningless stuff, feed your health when you can, and not feed the depression. Easier said than done. I know.