A man has been sentenced to 30 years to life for killing one man and 15 to 40 years for injuring another in November 2022.