Skip to content

Instantly share code, notes, and snippets.

import { Transform } from 'stream'
export class HighWaterMarkTransformer extends Transform {
highWaterMark: number
temp = new Uint8Array(0)
constructor(highWaterMark = 2048) {
super({ highWaterMark })
this.highWaterMark = highWaterMark
}
@websharik
websharik / AutoUnattend.xml
Created June 3, 2022 10:14
Disable Win11 checks and microsoft register account dialog (AutoUnattend.xml to root installer volume)
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
@websharik
websharik / gist:d71788de933b258602c7c44cb8d69e90
Created March 9, 2021 02:33
How to disable touchpad diagnostics hotkey (alt+shift+l)
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SynTP\Parameters\Debug /v DumpKernel /d 00000000 /t REG_DWORD /f
@websharik
websharik / fixsymlink.sh
Created March 1, 2021 21:50
Universal bash script to fix "CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink" without renew cert's