(This won’t look like an essay for a while, be patient.)
From the EBT
Memorize at least the verse portion of this short sutta. It’s not only a succinct summary of the entire holy life, it addresses the problem of lust in particular. A big part of samma sati (right remembering) is to memorize critically important pieces of advice, and remember to actually put the advice into practice. If under a lust attack, as a first response, just start chanting the verse (over and over as long as needed to calm down) and contemplate its meaning, figure out how to carry out those instructions better.
The first message in the thread has a link to some excellent book and video directly related to 31 body parts, 9 cemetary contemplations.
important practice tipmemorize not just the words of the 31 body parts, but also a visual image of each part. So as you chant the parts, visualize it as well in the mind's eye. Learn to do the whole sequence at various tempos, fast, slow, medium, forwards, backwards. And the important part, try to get the proper "feeling" of asubha. Doesn't have to be a negative emotion, it can simply be an equinamous feeling, a sober feeling in contrast with one inflamed by lust.
short and sweetUnder the organ-surgery subdirectory, I really like the "pin worms in colonoscopy" video in particular. It's a great way to snap out of deluded ways of perceiving the world and get more realistic, or a complete picture of what's really going on at a macro and micro level.
Read the the first pārājika rule section, and at least the first two sangha disesa rules.
important safety tip!Don't read the above vinaya sections unless you're currently in a strong, calm, un-lustful state of mind. Because those sections deal with breaking of rules of celibacy, it's describing erotic situations in great detail.
Thanissaro's BMC Buddhist Monastic Codeis an edited version of the vinaya and the Te commentary to it, the same vinaya sections cited above can be found here. https://www.dhammatalks.org/ebook_index.html
Making friends with the eminent deceased
The best way is to ordain. But if you can’t do that, consider a temporary ordination in Asia, maybe 3 months or longer. If you can’t live in a supporting environment, try to limit and slowly withdrawal from bad company completely. And by bad company, I mean anyone who is not living in a way consistent with the 8 precepts and would tempt you to do likewise. If you can’t find people keeping 8 precepts, then keep company among the eminent dead.
Reading about Ajahn Chah’s struggles with lust is particularly inspiring and helpful. If an arahant had to struggle like he describes, no less of a struggle than any ordinary person, and overcame it, so can you.
Books, and audio books in many languages of Ajahn Mun and his eminent disciples.