Problems in non linear PDE : equilibrium configurations in periodic media and non local diffusion