Skip to content

Instantly share code, notes, and snippets.

View JosXa's full-sized avatar
💙

Joscha Götzer JosXa

💙
View GitHub Profile
@JosXa
JosXa / typed-objects.ts
Last active September 22, 2025 12:18
Type-safe Object keys, values, entries, fromEntries, and mappings
/* Type-safe alternatives to the builtin `Object` functions:
* - Object.keys = typedObjectKeys
* - Object.values = typedObjectValues
*
* mapObjectEntries to combine:
* - Object.entries = typedObjectEntries
* - Object.fromEntries = typedFromEntries
*
* For motivation, see: https://www.totaltypescript.com/iterate-over-object-keys-in-typescript
*
@jcwillox
jcwillox / toolbox-context-menu.ps1
Last active August 14, 2025 13:17
PowerShell script to automatically add context menu entries for Jetbrains IDEs
<#
.SYNOPSIS
Automatically add context menu entries for Jetbrains IDEs.
.PARAMETER Name
The name or names of the IDEs to add context menus for, use -List to see available IDEs.
.PARAMETER BasePath
The path to the Toolbox apps directory, defaults to "$env:LOCALAPPDATA\JetBrains\Toolbox\apps".
.PARAMETER Global
Install context menu entries in HKLM registry (machine wide), requires running as administrator.
.PARAMETER Force