Skip to content

Instantly share code, notes, and snippets.

Test

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
@chipbite
chipbite / remap--caps=r-ctrl=home.l-shift=end=caps.reg
Created May 18, 2025 19:00
Windows - remap (r) ctrl-onto-> capslock, etc
Windows Registry Editor Version 5.00
;; Remaps keys, as follows:
;; 1. capslock becomes (=) ctrl (left)
;; (basic must have)
;; left ctrl = home
;; left shift = end
;; these two allow one to work on a laptop w arrow keys, with home and end to navigate in a nice way
;; end = caps lock
;; well, now that left ctrl is end, maybe we want capslock somewhere? TBH have never used it since I mapped it this way so... may change this later...
@chipbite
chipbite / replace-notepad-win11.bat
Last active May 22, 2025 07:55
Windows 11 - Replace notepad with notepad2
:: notepad2, install and replace standard win11 notepad, which is slow as snails...
:: first uninstall notepad2, if already installed
winget uninstall flos-freeware.Notepad2
:: backup, just to be prudent
reg export "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" notepad-exe-redirections-backup.reg
:: then delete the "redirection record", just to be sure
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f
@chipbite
chipbite / git-prompt.sh
Created November 8, 2024 12:16
How I almost added RHS info to git-bash, in /.config/git/git-prompt.sh
# ----------------------------------------------------------------
# prompt config for (git-)bash
# this is called from /etc/profile.d/git-prompt.sh
# (if this file exists, which it apparently does, since you are reading it...)
# src: https://github.com/git-for-windows/build-extra/blob/main/git-extra/git-prompt.sh
#
# why this file? /etc/profile.d/git-prompt.sh is overwritten with git (for windows) is updated.
# starting point (default setup for the prompt) can be found in /etc/profile.d/git-prompt.sh
#
# Config info: https://gist.github.com/adojos/fd30baa716dbfbe282fe147ab717b664

Copy reference

NKP-Pocky/Central\KpDataProvider\src\providers\icom\getIcomCacheData.js:34

async function fetchData() {
  const icomData = {};
  try {
    const unstructuredGeometryData = await getGeometryData();