solidly , competently , loyally he would have filled the minor posts for thirty years while the empire crumbled around him ; and now , just in time , by sticking to the ladders and avoiding the snakes , he had got to the top .