Knocking the yellow card out of the refs hand and screaming full on in his face whilst demonstrating that you've stupidly decided to wear woefully inadequate shin-pads seems to work.
Getting the ref to back down can be coached - Ferguson was a master at it.