I have not been through what you have irt depression, but one constant in my life, which has taken MANY crazy turns, at least over the last 15 years (I'm 30), has been programming, linux and hacking. No matter how I am feeling, I can "go into my shell" and just build shit, and it makes me content.