Why is 狗屎运 a commendatory term?
狗屎运 is an accidental luck and some good things you don't expect suddenly come to you. It's fine to use it in informal situations, but it's still a vulgar term.  Sometimes, it can be taken in a funny way, but you should be cautious when you use it in a formal situation.