One “noble” thing you can do is choose the right license and restrict commercial use unless paid for.
Amazon stole elasticsearch (opensearch), apple made appstore from the ideas of cydia/installer.app and IBM gutted Redhat (Linux) and are now selling it to Enterprises for their more fancy security. Big corps will just steal your FOSS and repurpose it, bundle it up, maybe obfuscate it a little bit here and there and resell it. Just imagine the sheer volume of FOSS running meta,google,aws and all the FANGS. Licenses dont mean anything, are easy to work around and besides, you can't fight these companies, especially not prove anything major.
Malicious compliance.
Most recent example: Rigol.
This is exactly what should not be possible to happen.
Funny how times have changed.
As long as you give what you can realistically spare, there should be no complaint about not getting compensation later.