(In)stability of minimal surfaces, generalizations, and applications