Free software for hire, done the other way around.

Imagine the community has hired you to code something. Write it. Announce a ransom price based on the value of the labor you put into it. Sell closed-source shareware or something. When your gross profit adds up to the ransom, the community has paid you for your work, so free the source. Be fair, use a license that allows derived works as ransomware.

I hope this will work, but I haven't had copious free time to try it yet.