For me, I can just copy over a modified sysctl.conf to a server and have such changes applied (reboot may be needed).
echo 1 | sudo tee /proc/foo
This has the added bonus that you can replace "echo 1" with a complex script that may not be safe to run as root.