Skip to content

Instantly share code, notes, and snippets.

Avatar

AyrA

  • Switzerland
View GitHub Profile
@AyrA
AyrA / SEARCH_README.md
Last active Oct 30, 2017
Fast Windows search
View SEARCH_README.md

Put the 3 batch files somewhere on your Desktop.

cache.bat

Use this to create/renew the cache. Depending on the number of files on your drives and the number of drives this might run for a few minutes.

If you prefer it would not index certain drives, remove the letters from the list.

search.bat

@AyrA
AyrA / manual_windows_update.md
Created Oct 30, 2017
How to get manual Updates back in Windows 8 and later
View manual_windows_update.md

Create the two files below. Keep whitespace as is. You can now use the Task scheduler (taskschd.msc) to create an update schedule that fits your computer usage. Microsoft usually publishes updates on the second tuesday of every month unless they are extremely critical. The files need to be run with administrative privileges.

stop_update.bat

net stop wuauserv
sc config wuauserv start= disabled
@AyrA
AyrA / square.js
Created Oct 18, 2017
You no longer need an npm module to calculate squares of numbers
View square.js
//Calculates x² of an integer up to ±1 million
var square = (function () {
var s = "if(A==B){return C;}";
var func = "var A=Math.abs(D|0);";
for (var i = 0; i <= 1000000; i++) {
func += s.replace(/B/, i).replace(/C/, i * i);
}
return new Function("D", func + "return Infinity;");
})();
You can’t perform that action at this time.