Blog
Snippets
Projects
About
Resume
Joe's Blog logo
BlogSnippetsProjectsAboutResume

Snippets

Code Snippets

Fix Corrupt Zsh History

Automate the repair process for a corrupt Zsh history file.

Undo `--single-branch` Cloning

Recover access to all branches after cloning a single branch with `--single-branch`.

Manage Node.js Versions with NVM

Learn how to install and use NVM (Node Version Manager) to switch between Node.js versions seamlessly.

Speed Up Your Tests with Pytest-Xdist

How to significantly speed up your unit tests by leveraging pytest-xdist for parallel execution.

npm commands

Common npm commands to use locally: npm link, unlink, rm, list, npx, etc.

Casing utilities

Usefult string casing utilities functions in JavaScript

Case sensitive renaming

How to safely rename a case sensitive file/directory in a git repo?

Color validator

Check if a string is a valid color

Markdown code block syntax

Markdown Code block's basic and advanced syntaxes

Event Emitter

Simple Event-Emitter/PubSub pattern

Read file names

Read all file names in a directory

.gitignore tip

Ignore all files in a directory except a specific file

useLocalStorageState

A custom hooks to use local storage state

Built with
Copyright © 2025
• Joseph's blog page - Learning and Sharing!