regedit HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU “Create” -> “DWORD value (32-bit)” ->NoAutoRebootWithLoggedOnUsers Set to 1 Stop Windows 10, 11 from Restarting: The Best Methods! | DiskInternals Read more →
Month: August 2022
typescript load a stream
const chunks: string[] = []; stream.on(‘data’, function (chunk: string) { chunks.push(chunk); }); // wait for the stream await new Promise<void>((resolve, reject) => { stream.on(‘end’, resolve); stream.on(‘error’, reject); }); Read more →