Snoke and the First Order
This excerpt gives a bit of insight into the origins of the First Order, along with Snoke:
"Snoke knew he himself was an unlikely fulcrum, just about the furthest thing from what the tattered remnants of Palpatine's Empire had imagined as a leader. The admirals and generals who'd survived the fury of the Empire's implosion and the New Republic's wrath had envisioned being led by someone else, anyone else: pitiless, devious Gallius Rax; dutiful, cautious Rae Sloane; the slippery political fanatic Ormes Apolin; or even an unhinged but ambitious military architect such as Brendol Hux. All of those would-be leaders had been co-opted, sidelined, or destroyed, leaving only Armitage Hux, the mad son of a mad father. And that one was but a mouthpiece, a miscast tinkerer whose rantings could only persuade the sort of rabble who blindly worshipped rage and lunatic certainty. Though galactic history would record it differently -Snoke would see to that- the evolution of the First Order had been more improvisation than master plan. That was another element visions tended to miss. Palpatine had engineered the Contingency to simultaneously destroy his Empire and ensure its rebirth, ruthlessly winnowing its ranks and rebuilding them with who and what survived. The rebuilding was to take place in the Unknown Regions, secretly explored by Imperial scouts and seeded with shipyards, laboratories, and storehouses--an enormously expensive effort that had taken decades, and been kept hidden from all but the elect. But the Imperial refugees' military preparations had been insufficient bulwarks against the terrors of the Unknown Regions. Grasping in the dark among strange stars, they had come perilously close to destruction, and it had not been military might that saved them. It had been knowledge--Snoke's knowledge. Which, ironically, led back to Palpatine and his secrets. Palpatine's true identity as Darth Sidious, heir to the Sith, had been an even greater secret than the Contingency. And the Empire's explorations into the Unknown Regions had served both aspects of its ruler. For Sidious knew that the galaxy's knowledge of the Force had come from those long-abandoned, half-legendary star systems, and that great truths awaited rediscovery among them. Truths that Snoke had learned and made to serve his own ends."-TLJ
Evidently Palpatine had a contingency-plan for just about everything. 👆