the bandaid solution is to switch from one obsession to another. To help you in your endeavour you should start jacking off, or smoking or eating.
If you don't want that try to keep yourself busy find yourself a hobby like renovating junk, stalking your ex's, or gambling, or something wholesome I can't think of right now.
Keep it up man, quitting drinking I hard! you should empty all the bottles you have right now in the sink