sleep enough, eat healthy, drink in moderation, have real friends that you can trust and that trust you, listen more than you talk, do some good for others, follow your intuition, listen to your body, seize the day.
I've read that happiness has some specific conditions and that it comes into being when those conditions are fulfilled.
Snippet from an article:
> What is happiness indeed? What is the law of happiness?
> Once we live without hunger, without loneliness and with bright mind; those kinds of minds exist, that is happiness. In order to live without hunger, loneliness and darkness, we ourselves should make those conditions.
I'm going to assume that a linux kernel hacker probably enjoyed the long hours in front of a monitor in solitude. But however enjoyable, in the long run, the solitude can change a man.
But a keyword in this, as with everything, is balance.