To be successful in whatever one does; to have things go smoothly as if one has found a source of water on both sides; to be able to draw from a resource at will.
to benefit from both sides
To be slick and smooth in social or professional dealings; to gain advantage from all parties or maintain good relations with everyone to one's own benefit.