Substitute George Earthy netted a 10-minute second-half brace as Bristol City came from behind to leap into the Championship play-off spots with a thrilling 2-1 victory over Middlesbrough and their under-pressure manager Michael Carrick at Ashton Gate.