The command-line you’re looking for, to turn your laptop into ghetto noise-canceling headphones:
$ sox -t alsa hw:0 -t alsa hw:0 vol -1
Sadly, latency is a killer. And, unless you manually spin it down, the required gain will pick up your internal hard drive’s spinning platters... and make a freaky feedback effect.
These earplugs aren’t enough.