Rotherham climbed out of the Sky Bet Championship relegation zone with a 2-1 victory over Preston.
The depleted Millers, who had been hit by injuries and suspension over the festive period, could not even fill their bench but managed to battle to a vital win thanks to Will Vaulks' thunderbolt and Michael Smith's header.
An even better opportunity fell to Tom Barkhuizen who was put clean through by the sharpness of Nmecha before dragging his shot wide when one-on-one with Rodak.
Rotherham youngster Ben Wiles had the home side's first effort with a rasping strike from the edge of the box that Declan Rudd had to tip over the bar.
But there was nothing Rudd could do to deny Rotherham a half-time lead. Vaulks' 25-yard free-kick flew past the Preston goalkeeper into the top of the net in stoppage time.
Rotherham were buoyed by the breakthrough and Ryan Williams came close to extending their lead after dragging just wide following a swift move.
Preston's best hope of getting level looked like coming from a set-piece from Gallagher and they came close when he picked out Nmecha but his effort was clawed away by Rodak.
Rotherham made them pay in the 76th minute with half-time substitute Joe Newell bursting down the left flank and picking out Smith to head home at the back post.
That sprung Preston back into life and they pulled a goal back in the 78th minute through Nmecha, despite Richard Wood's best efforts to stop the shot crossing the line.
Rotherham's stand-in right-back Semi Ajayi had to clear off the line from his own man as Smith diverted Nmecha's cross goalwards in a period of immense pressure but the dogged hosts managed to survive four minutes of added on time.