route change 0.0.0.0 mask 0.0.0.0 192.168.1.201
route add 8.8.4.0 mask 255.255.255.0 192.168.0.200
// Save this as a .js file, e.g. "tee.js"
// Get the command-line arguments
var args = WScript.Arguments;
// Check if a file argument was provided
if (args.length < 1) {
WScript.Echo("Usage: cscript tee.js <output_file>");
WScript.Quit(1);
}
// Get the output file name from the arguments
var outputFile = args(0);
// Create a file object to write to the output file
var fso = new ActiveXObject("Scripting.FileSystemObject");
var file = fso.OpenTextFile(outputFile, 2, true); // 2 = ForWriting, true = Create if not exists
// Read from stdin and write to both stdout and the output file
while (!WScript.StdIn.AtEndOfStream) {
var line = WScript.StdIn.ReadLine();
WScript.Echo(line);
file.WriteLine(line);
}
// Close the output file
file.Close();
для тупо офисных задач
Minimum requirementsПолагаю обновление ломает совместимость. Такие вещи обычно специально проводят, что бы полностью исключить пользователей с win7, поищи, может кто то проверку сломал в обновлении?
Operating system: 64-bit required. Windows 10.
Числа - время выполнения в секундах, антивирус отключен. Не вижу смысла что то еще добавлять.MethodsFor this experiment, I used Windows Version 2004 build 19035.1000 on a ThinkPad X1 Extreme with 32GB of RAM and a Samsung 970 Evo Plus 1TB NVMe SSD.
The four tests are:
yarn build create-react-app: Use webpack and babel to build the basic open source create-react-app. This generates about 40KB of gzipped code.
yarn build tsnsi: Use webpack and typescript to build a large proprietary application that I work on most days. This generates about 40MB of minimized javascript code. This repo contains just over 100000 files. THANKS node_modules!
du -sh tsnsi: Calculate disk usage over the 100000 small files in the proprietary project.
du -sh cpbotha.net: Calculate disk usage over my personal blog’s hugo source files. 4700 files of varying sizes occupying about 780MB.
In all but one case (du tsnsi on WSL2 NTFS, because the spread was just too great), I ran the test multiple times, and recorded the average time in seconds. After the first run, standard deviation was low.
In all cases, the built-in Microsoft anti-virus real-time protection was disabled, as that can have a significant effect on IO-based benchmarks.
Test WSL 1 ntfs WSL 2 ntfs WSL 2 samba WSL 1 lxfs WSL 2 ext4 native linux yarn build c-r-a 11.89 63.14 13 7.38 5.8 4.63 yarn build tsnsi 45.25 263.71 65 31.70 28.75 24.13 du tsnsi 4.9 70 - 155 (4x) 13.5 8.6 0.19 0.19 du cpbotha.net 0.24 3.7 0.5 0.074 0.011 0.015
Не лагающие протоколы передачи экрана (для работы с графикой), требуют минимум гигабитные сети и алгоритмы, кодирующие изображение видеокодеками.
Простейший vnc не подойдет.
Хорошую скорость могут дать к примеру майкрософтовский rdpx (только с серверными ревизиями windows, только с прямым доступом к серверным видеокартам), или что то типа teamviewer/anydesk, попробуй parsec, так же мне очень понравилась работа steam link remote play (бесплатно, win/linux, заточена на realtime игры, и клиенты могут работать на очень старом железе, например планшетниках android, т.е. поддержка очень качественная, хотя что то я не уверен что какая-нибудь малинка тут справится).
Открытые решения - например sunshine+moonlight (говорят лучшая замена steam link), rustdesk