Two earthquakes shook California overnight Sunday, with the second tremor registering a higher magnitude than the first.