what kind of insect is this? is it a moth larvea or a carpet bug?
That is the larva of a carpet or skin beetle, family Dermestidae.https://en.wikipedia.org/wiki/Dermestidae These eat dried flesh, skin, and other dried organic matter. They are the bane of entomologists because they eat insect collections. They are used by bone-collectors to clean skeletons, and are the last insects to arrive at a corpse.