Over the last couple of years my diet has improved a lot: less meat, less sugar, almost no junk food, more nuts and fruits and vegetables, and at least a liter of water per day now. Before, it was a rare day that I drank even a glass of water -- I usually preferred chocolate milk or heavily sugared iced tea or something.
I also get a lot more exercise now and try to maintain a more regular sleep schedule.
At 33, I'm in the best shape of my life, and I've found that now when I do need to sit down and do work, I can do it for longer and with less frustration. When I get sick of sitting and focusing on a stupid little screen a couple of feet from my nose, I know it's time to get up and do something else.
So as I gradually develop more discipline in the rest of my life, I wonder if maybe that's all I really needed to begin with. People aren't that far removed from their hunter-gatherer days, and now we sit all day surrounded by walls, without sunshine, eating really poor diets -- maybe an inability to focus and concentrate all day is just our bodys' way of objecting to that rapid change.
"Eat better, get exercise, reduce distractions" isn't a very sexy answer though, when compared to, "take a pill and become awesome like that guy in Limitless."