Common features in high Tc cuprates and diborides