Scaling in natural and laboratory earthquakes