Get/keep one’s shit together
According to the Oxford English Dictionary, shit meaning unspecified objects, materials, activities, events, stuff, things, etc. as opposed to faeces, dates from the 1930s. Get one's shit together is simply a crude version of get one’s act together, and dates from the late 1960s. Opinion is divided. however, whether the origin is British or American.