You can choose to make your code available under any license, such as CC0 or even Public Domain.
The fact that those who have chosen (*their* choice) to license their code under some variant of the GPL or even BSD/MIT/ISC and Microsoft/GitHub is *stealing* that code with zero credit or attribution is not ok.
Helping people is good. Being stolen from so that you can help people is bad.
Please don't enable the bad.