For your purposes, it would be fine to post something that works on Ubuntu as long as you can verify that it's not Ubuntu-only (if it's open source and works on at least two distros, chances are it works on any distro)[0].
[0] Heck, even most things that are made for Ubuntu work on other distros with minimal modification - it's just a matter of convenience.