Resistive instabilities in general toroidal plasma configurations | Synapse