In the second episode of the Peep Show, after having a discussion one character says to the other;
Shit is as shit does, my friend.
YouTube link:
The End Of "The Hair Blair Bunch" at 0:42
I couldn't grasp the grammatical structure and the meaning of the sentence. I searched it on the Internet but maybe because it's a specific sentence, I couldn't find anything relevant.