Skip to content

Instantly share code, notes, and snippets.



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

Put the 3 batch files somewhere on your Desktop.


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.


AyrA /
Created Oct 30, 2017
How to get manual Updates back in Windows 8 and later

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.


net stop wuauserv
sc config wuauserv start= disabled
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.