The following quote has been very important to me in my journey to find peace with my same-sex attraction. I know it can apply to essentially any trial we face:
"You can have sacred, revelatory, profoundly instructed experiences with the Lord in any situation you are in. Indeed, you can have sacred, revelatory, profoundly instructive experiences with the Lord in the most miserable experiences of your life - in the worst settings, while enduring the most painful injustices, when facing the most insurmountable odds and oppositions you have ever faced....Every experience can become a redemptive experience if we remain bonded to our Father in Heaven through it...Whenever these moments of our extremity come, we must not succumb to the fear that God has abandoned us or He does not hear our prayers. He does hear us. He does see us. He does love us. When we are in dire circumstances and want to cry "Where art Thou?" it is imperative that we remember He is right there with us - where He has always been! We must continue to believe, continue to have faith, continue to pray and plead with heaven, even if we feel for time our prayers are not heard and that God has somehow gone away."
-Elder Jeffrey R. Holland of the Quorum of the Twelve Apostles
Elder Holland, as always, says it like a boss.