i went to a job interview felling very confident and cocky. but i got the job anyhow because i had the right skills.
i think if you are confident in yourself, you can talk yourself into most jobs. you should give yourself more credit and not say you were lucky!
unlike many of my friends i was confident when i went to job interviews and i always got the job. i guess i was lucky.