how can i get my foot in the door in Poland ?
Get a degree and several years of experience in an IT-related engineering field and find a job BEFORE you come to Poland. Or get a job with a Turkish company that does business in Poland, and request a transfer to Poland. Aside from that, there's little chance of you finding gainful employment in Poland.
what are the possibilities of getting a scholarship for doing masters or funding masters in exchange of work for the university ?
Zero chance. That just ain't going to happen.
Can i apply for a temporary residence permit via my girlfriend ?
Nope. Not a chance. As far as the consulate is concerned, she is a total stranger to you. And no, she cannot sponsor you for temporary residence.
If you cannot afford to pay 100% of your studies and stay in Poland without working in Poland, then Poland is not the country for you. It's time to sit down with some experienced and competent adults and make realistic plans that do not include Poland.
If you want to be with your girlfriend, then it will be infinitely easier for her to join you in Turkey than for you to join her in Poland. If she doesn't want to join you in Turkey, it is probably time to let her go and move on with your life.