There are techniques which are common in what's called CBT or Cognitive Behavioural Therapy.
It basically is the idea that our patterns of thought affect our moods and our being. And if we can change those patterns then we can have a positive impact on our well-being.
When being engaged in this struggle it's important to remain optimistic. Being optimistic will give you greater energy, help you avoid falling, and if you do fall it will help you to pick yourself up and keep going.
Don't fall into the thinking trap of the three P's:
Permanence:
Pessimistic people think that their failure is permanent. This demotivates them and prevents them from continuing the struggle.
Optimistic people recognise that while they may have failed now, with hard work and diligence they can beat it. It is not a "permanent" failing and they can succeed. This energizes them to keep up the fight and eventually succeed.
Pervasiveness:
Pessimistic people assume that failure in this one area of their life means they are a failure in life as a whole. This demotivates them and prevents them from continuing the struggle.
It also prevents them from participating fully in all other aspects of their life, which reduces their overall well-being, which then in turn makes it even harder to succeed in this struggle.
Personalization:
Pessimists blame themselves for every time they fail.
Optimists apportion blame on causes outside of themselves. Optimists are therefore generally more confident.
Optimists also quickly internalize positive events while pessimists externalize them.
Applied to this struggle:
- Permanence - The struggle isn't permanent. There are a number of people on this site who have had great struggles but have succeeded. With effort you will succeed.
- Pervasiveness - Just because you struggle in this area it does not mean you are a bad Jew in everything that you do. This is a particularly strong perception in the Jewish community. Yes many of us struggle with this. But we can still be successful in other aspects of our lives.
- Personalization - Don't blame this all on yourself. Yes we must accept responsibility for our actions, however also recognise that this is one of the greatest challenges of our generations. No other generation that has ever lived has ever had to live under such constant bombardment of sensual imagery and with such ease of access. We live in a very difficult environment.