What do you get when you mix knitting, electronics and a little ingenuity? Netflix socks!

Netflix has posted detailed instructions on its website that explain how to make socks that pause the streaming service if users fall asleep.

"Netflix socks detect when you've dozed off and send a signal to your TV, automatically pausing your show," the instructions explain. "Never again will you binge-watch yourself to sleep, only to wake up two seasons later wondering what happened."

How does it work? Netflix (NFLX) starts with instructions for knitting socks, and helpfully includes pattern designs for its most popular shows, including "House of Cards" and "Master of None."

Building the electronics set-up is step two. This includes an accelerometer (to detect when feet have stopped moving), IR LEDs (to send a signal to the television) and a battery, among other components.

The electronics are then inserted into the socks. A few strips of felt help keep them comfy. In order to get everything to work smoothly, users will also need to do a little soldering and computer programming.

For "extra credit," Netflix directs users to strap a pulse sensor to their toe.