Is there a way to disable minimising windows with the yellow button in OS X?
You can disable ⌘M by running this and reopening applications:

defaults write -g NSUserKeyEquivalents -dict-add Minimize '\0'


If the menu item was assigned to nil, pressing L would trigger it in some applications like Audacity.

If you remove Dock.app, the minimize buttons stop working. But it also disables full screen windows, Mission Control, the Notification Center sidebar, the application switcher, Launchpad, and Dashboard, and makes desktop backgrounds gray.

NuKit can change the zoom and close buttons, but I don't know any application for changing or disabling the minimize buttons. There is another question about it at Super User.

I didn't find any hidden preferences for it using strings or gdb.