As the Chinese saying goes, "know the enemy and know yourself, and you can fight a hundred battles with no danger of defeat", one should know both himself and his counterpart to win each battle.
2
只有你懂他的意思了,毕竟是好朋友,知己知彼。
Only you understand what he means. So you're good friends after all, with mutual understanding!