Adam Gordon Bell is a developer, blogger, and the host of the software engineering podcast, CoRecursive. Michael Lynch (autor of Refactoring English) interviewed Adam about writing and his success at attracting customers through his blog posts when he worked at Earthly.
Charity work is the way imho. You can support an NGO with your skills, contribute to an open source projects or challenge yourself with a side project that will be interesting for you and good for others. In my experience, it makes it a lot more motivating.
There are orgs connecting tech people and NGOs, you might want to look into that, e.g. tech to the rescue: https://app.techtotherescue.org/available-projects?