You may not be as 'alone' in those struggles as you think.
* Bad professional environments are the norm. Good ones are the exception. As you have experience of the bad you will hopefully develop a set of filters to avoid getting another job at the bad ones.
IMO If you look for companies that are very profitable (good $ profit per employee) you won't go to far wrong. Lack of cash can make a company very perverse!
* Changing jobs always takes time. 3 months is fairly quick. It depends what city you are in and your specialty. Changing job isn't easy for anyone. Usually takes me 3 months actually.
* No girlfriend by 30? Maybe more common than you think, especially in IT. Once you have one you will find you have a lot less time for things you are passionate about. You need to manage your own time vs. time for the relationship. Let alone what having children does to that dynamic. Want to go travelling for a year? You can do it easily with no ties, no one to negotiate with.
Another positive spin is that you now have the wisdom at nearly 30 to make an excellent choice for your partner. I'm not sure what your M.O. is but I suggest if you are shy like me then don't try to chat up women in bars, or straight ask women out (then you have the pressure of a 'date') etc. but just make friends with women.
And at 30 your target are range for women means you have a lot of choice.
* You colleagues may not have had it easy. Even if they have they are at a disadvantage. Once you overcome your current obstacles you will be someone who is good at overcoming obstacles, and you will accelerate beyond what the ones that 'had it easy' will ever achieve.