Find shared terms

The other day I talked about term splitting and how it's getting fixed in WordPress 4.2. Today, Josh Eaton — a web developer and partner at Reaktiv Studios — has some code available to find and list shared terms. This may be useful to debug any issues that may arise for plugins that store term IDs.