I came across this nice online utility today for generating my.cnf. I would probably be wary of using it to generate a config file for a server that is already being used. New installations only!
https://tools.percona.com/wizard
You will need an account to see the result.