Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I usually do a kubernetes cluster on top of VMs. But sometimes when I really want to scale the standard cloud server less platforms all support /dev/null out of the box. (Except for Windows...)


> Except for Windows...

copy c:\file nul

It's been there since DOS or more likely CP/M :)


   set "nul1=1>nul"
   set "nul2=2>nul"
   set "nul6=2^>nul"
   set "nul=>nul 2>&1"
just saw this in a .cmd script


Still need an adapter library though! Fortunately there are about 7 competing implementations on npm and most of them only have 5-6 transitive dependencies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: