A gunman who murdered a local government worker in Northern California before cops shot him dead committed several crimes in the weeks before the attack.