Graduate degree, or undergrad?
What I did wasn't magic, though. I worked my ass off to get relevant work experience starting as soon as I could. I used that to get into a YC company. They liked me and my work enough to write me a letter of rec and forward my resume to the YC founder's list. FWIW, no one even asked about college beyond "how's college going?" as I was in final's week of my last semester when I interviewed with a bunch of companies after the forward.