We have a SimpleHuman trash bin in our kitchen and, over time, the plastic hinges on the lid have deformed and worn to the point where the lid won't stay on the bin any longer. The pins on the bin are fine, still, so this thing is just a replacement for the lid half of the hinge. I printed two of them and glued them in place on the lid.
The original clamp/notches on the lid were still narrow enough they could grab the pins, but they'd let go if you step on the foot pedal. To install the replacement parts, I used an X-acto knife to carve out a bit more space, then used epoxy to cement the new parts into place.