A Library to Void Future Suffering

last updated 2024 autumn

Technical difficulties never go away, innit. There’s nothing like facing a problem you’ve had before, realising you’ve forgotten the solution, and being filled with regret at not noting it down. Back to the search engine it is, with rising desperation and panic as you struggle to find the solution you found off an archaic internet forum all those years ago.

Well, screw that. From now on we’ll archive every issue we face, no matter how trivial they seem, so that should they arise once more in future, we shall be prepared.

Of course, these are liable to become outdated themselves. But hey, one day 1 of these might swoop in to save the day, and it’ll all have been worth it.


Rename All Git Commits

encounteredtopics
2026 September 2Git

Issue

  • Want to strip conventional commits from a project

Solution

Command line:

git rebase -i --root

The rest is the same as renaming N commits below!


Rename Past N Git Commits

encounteredtopics
2025 December 26Git / VSCode

Issue

  • Made a few commits in conventional commit format, in a project that does not use conventional commits

Solution

Command line:

# to go back 3 commits:
> git rebase -i HEAD~3

In the interactive editor, replace pick with rename. Note that the commit messages here are purely informational, editing them does nothing.

Close the file. For each commit VSCode will open a new file – edit the commit message on the first line, then close the file. Once all files have been addressed the terminal will return input back to you.

Sources


encounteredtopics
2025 AugustVSCode / Windows / Unity

Issue

  • If Unity project is not repo root, .vscode/ folder created by Unity will be nested, which VSCode can’t detect

Solution

Create a symlink to map a .vscode/ folder in the project root to the nested .vscode/.

Command line (as admin):

mklink /d <dest> <source>

Sources


Hanging localhost Port

encounteredtopics
2025 January 21VSCode / Windows / web / bug

Issue

  • npm run dev started server on localhost:5173
  • VSCode closed?
  • npm run dev again now started server on localhost:5174
  • No way to close or kill hanging terminal in VSCode

Solution

Command line:

netstat -ano | findstr :8080

Look for LISTENING PID, then run:

taskkill /pid <PID> /F

Newer Solution

Command line:

npx kill-port <PORT>

If multiple ports have been hanging:

npx kill-port 517*

Notes

  • Need /F to forcefully kill task

Sources


Windows Slideshow Background

encounteredtopics
2024 November 1Windows 11 / bug

Issue

  • Set background to Slideshow
  • Switched virtual desktops (Ctrl+Win+Left/Right)
  • Background reverted to Spotlight??

Solution

  • Revert background to non-slideshow
  • Restart computer
  • Set background to desired slideshow
  • Open registry editor to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VirtualDesktops\Desktops
  • Delete the Wallpaper key in each subdirectory’s entries (subdirectories represent virtual desktops)
  • Restart computer
  • Right click desktop » next background

Sources