For me, mindfulness and going for a run help to break the negative thought patterns that then lead to depression. I have also been trying positive affirmations at various times of the day to create positive thinking mental habits. Safe place generation is another technique I sometimes use but I need to practice more to experience its full benefits. The root of the problem is the negative beliefs/thinking programmed into us. So some work with the subconscious is important.