Skip to content

Instantly share code, notes, and snippets.

@Jaid
Jaid / boilerplate.ahk
Last active April 6, 2021 11:49
My personal boilerplate for building complex hotkey scripts in AutoHotkey v2
#Warn All, StdOut
#SingleInstance Prompt
#Include ../lib/jaid.ahk2
main() {
; TODO: Write business logic
}
; TODO: Change key
#e:: {
@Jaid
Jaid / lockWindows.ahk
Created March 17, 2021 07:33
Lock Windows and turn off all displays in AutoHotkey v2
#Warn All, StdOut
#SingleInstance Prompt
ProcessSetPriority "High"
; From https://www.maketecheasier.com/turn-off-monitor-automatically-lock-windows/
#l:: {
Sleep 200
DllCall "LockWorkStation"
Sleep 1000
@Jaid
Jaid / resize.sh
Created March 24, 2021 13:34
Getting a 1920 x 1080 resolution in Linux Mint on VMWare Workstation
# From https://superuser.com/a/758464/1288709
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080
@Jaid
Jaid / markdown.css
Last active April 13, 2021 00:22
Stylesheet for markdownConverter.StyleSheets in VSCode extension MarkdownConverter
* {
background: red !important;
color: red !important;
}
@Jaid
Jaid / showSeconds.reg
Created April 22, 2021 16:08
Show seconds in Task Bar clock in Windows 10
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSecondsInSystemClock"=dword:1
@Jaid
Jaid / Disable Window Shaking.reg
Created April 29, 2021 14:53
Disable window shaking (minimize gesture) on Windows 10
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisallowShaking"=dword:1
@Jaid
Jaid / migrateEsm.md
Last active September 26, 2025 15:57
Migrate from CommonJS projects to ESM

lodash

From

const {pick} = require("lodash")

To

import {pick} from "lodash-es"

Dependency migration:

@Jaid
Jaid / searchQueries.md
Last active September 21, 2021 18:05
Windows Explorer - Advanced search query examples

Windows Explorer - Advanced search query examples

All folders

kind:folder

⚠️ This also finds zip-compress folders. Can be excluded:

@Jaid
Jaid / migratingRules.md
Last active October 30, 2025 07:22
ESLint rules for migrating projects from CommonJS to ESM

ESLint rules

The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.

ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.

  • .eslint.json
{