1. Right a wrong you committed. This is especially true if the bad luck is caused by your bad choices. 2. Donate to charity or do an anonymous good deed.
If you have been in the terrible circumstance of having bad luck for breaking a mirror, you can reverse the bad luck by finding a pin and picking it up.