Vietnam as a historical example and Afghanistan as a recent one.
The biggest asset these countries had in their favor was distance from the American industrial core. First Nations people employed many of the same techniques used in Vietnam and Afghanistan but were ruthlessly slaughtered. Guerrilla movements in Latin America - the FARK in Columbia and socialists in Guatemala, Honduras, and El Salvador got massacred by American military power. These countries are wholly within the US sphere of influence now.
Let’s not forget what’s going on in Israel rn vs all the proxies.
Israel is a textbook case of advanced weaponry tilting the playing field. Air superiority, naval support from the US, and a high tech anti-missile/anti-personal system along with one of the most advanced spy networks in the world all allow this relatively tiny nation to punch far outside its weight class. By contrast, less developed countries like Egypt, Iraq, Libya, and Sudan routinely serve as punching bags for more advanced states.