Recently did something similar with a Pocket CHIP and an X230. This is a wonderful SPI programming setup: https://imgur.com/5KEo4Y5
Most important bit is a SOIC8 Pomona 5250 clip and some wires to connect it up properly. I ended up soldering some right-angle headers onto my CHIP so I can do other things besides SPI programming with it.