A San Diego man who repeatedly stabbed a nurse arriving for work last year was sentenced to life in prison, plus four years.