if you follow the link, they compute the matrices for ad (e1), ad (e2)...

I'm confused, how does one explicitly calculate those matrices. I need a systematic way to find them. I can see they satisfy the commutation relations, etc as required, but I don't know how to actually calculate the matrices.