How to reduce annoying fan noise

Surely there’s an easier way of setting a bit? See for example: MAC address randomization script