Read Rework by Basecamp. Read The Beginning of Infinity by Deutch. Read the Art of Doing Science and Engineering by Hamming. Watch some Bret Victor talks. Ignore the negative memes about tech. They're all wrong, the rules get re-written every 10 years, and that is going to decrease in duration, not increase. You might be the person needed to re-write them.
Release your code. Teach. Share.
If you can, bootstrap. Give more than you take. Don't hire or work with assholes. Grow slowly. Don't over-lever yourself. Make something people not just want, but love. Know thyself. Don't outsource your thinking, build the thing only you can build.
If you are not working on the most important problem in your field, why not?
Most importantly, know that the future is bright and that our best days are not only ahead of us, but always will be.