So from what I understand is that everything I do on conpany property (that includes coding in a pub but on the company laptop) belongs to the company.
So what I do is to first code it (any new idea that I'm working on) at home on my personal setup (including cloud an all). Then I release everything on a Apache V2 + MIT combo with CC BY SA 4 (for pics, vids etc) that I think covers everything.
Then I host it under a github organisation (I am the admin of the org but the code is not hosted directly in my profile). Then I go back to the office next morning and ask one of the junior team members to fork it.
In my head, I'm thinking that yeah well, I wrote something in my personal capacity somewhere and then somebody from the company forked it, so that's not my problem.
So far so good... And the department is too much dependent on me so avoids any confrontation anyway. But I have always wondered, if this is fool proof? Can somebody find any loopholes in this approach and make it better...