Open the [Windows Terminal][terminal] as Administrator and run the PowerShell script.
Install all [Windows OCR][ocr] language capability packages to the system via Windows Update.
@echo off | |
powercfg.exe /h /size 100 | |
powercfg.exe /h /type full | |
control.exe /name Microsoft.PowerOptions /page pageGlobalSettings | |
pause |
#Requires AutoHotkey v2 | |
key := "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" | |
RegWrite(Mod(A_Hour + 23, 24), 'REG_DWORD', key, 'ActiveHoursStart') | |
RegWrite(Mod(A_Hour + 11, 24), 'REG_DWORD', key, 'ActiveHoursEnd') | |
RegWrite(2, 'REG_DWORD', key, 'SmartActiveHoursState') |
# Configure the public AdGuard DNS server with DoH (Encrypted) programatically in W11. | |
# https://adguard-dns.io/en/public-dns.html#:~:text=Configure%20AdGuard%20DNS%20manually | |
# Define AdGuard DNS servers and their DoH template. | |
$servers4 = @( | |
# IPv4 default servers: block ads and trackers. | |
@{ address = "94.140.14.14"; template = "https://dns.adguard-dns.com/dns-query" }, | |
@{ address = "94.140.15.15"; template = "https://dns.adguard-dns.com/dns-query" } | |
) |
;@Ahk2Exe-SetFileVersion 1.0.4.0 | |
;@Ahk2Exe-SetProductName Robocopy backup tool | |
;@Ahk2Exe-SetCopyright https://gist.github.com/flipeador/29ac92f277f4c01e07659f17f8c0caa5 | |
#Requires AutoHotkey v2 | |
#SingleInstance Off | |
#NoTrayIcon | |
TITLE := 'Robocopy backup tool' |
/** | |
* JavaScript UUIDv7 (Time-Sortable Identifier) for NodeJS and the browser. | |
* https://gist.github.com/flipeador/878e735b9f6432ff7006975627104693 | |
* | |
* | |
* IMPORTANT: | |
* Quickly made with the help of ChatGPT, not suitable for use in production. | |
* This implementation may not be fully compliant with the UUIDv7 specification. | |
*/ |
/** | |
* One-time password implementation for NodeJS and the browser. | |
* https://gist.github.com/flipeador/d70a8a08b9600116cc102b6f63e8519e | |
* | |
* Special thanks to ChatGPT for its incredible skills. | |
*/ | |
const CHARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; | |
/** |
/** | |
* | |
* QRCode for JavaScript by Sangmin David Shim. | |
* https://github.com/davidshimjs/qrcodejs | |
* | |
* Licensed under the MIT license. | |
* https://opensource.org/license/mit | |
* | |
* The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED. | |
* https://www.qrcode.com/en/patent.html |