Personally, I publish everything I do on GitHub and equip everything with a standard open source MIT license. That takes care of all issues for software. For other publications, I use a Creative Commons license. I did some research on licenses a year or two ago and these seemed safe and sensible choices.
I hope this helps.
Cheers,
Jeremy