Are there rules for simple patch distribution?

I understand UE4 forks need to remain private on GitHub, but is there a place for distributing or linking to simple patches? (assuming just a few dozen lines, and of course no leaks of NDA platform information).

For instance I’m writing a free software library which works well with UE4; I would find it convenient to distribute the Unreal integration patch with the library as an example file. What are my options?

It’s ok if it’s really just small amounts of UE code as you suggest.