2) Remember that tech invites high performers, and HN has a bunch of VERY SMART people. Don't compare yourself to them; you'll always feel lousy. Compare yourself to the people behind you on the bell curve. You are above average, and for the moment, that's good enough. Now you just need enough motivation to plug away at the good ideas, and keep producing them until you get the awesome ideas.
3) Make sure your food and exercise are good - there's lots of evidence to show that good exercise helps with mood. And eventually it may lead to team sports, which have a bunch of social life benefits. Alcohol will lower mood. Some people find that even small amounts of alcohol will lower mood for days. Being careful with sugar, caffeine and alcohol should help.
4) Learn a time management technique, like pomodoro (but there are probably others) and keep at least one project going.
Most importantly, good luck, and keep going. If you find things getting worse it's a really good idea to see a doctor. Depression sucks, and sometimes the worse it is the harder it is to treat.