I think it's all about attitude. Go at life with the right outlook, and a genuine sense of decency, courtesy, and consideration, and it will come back to you.
I don't even think it's spiritual. Good karma doesn't come from "the ether", as it were. It's just a mindest that attracts like...