Build your own DNS, Git, Redis, or programming language from scratch with Codecrafters.
Handy Git Commands Every Developer Should Know
Git is an essential tool for modern software development. While most developers are familiar with basic commands like git add, git commit, and git push, there are many lesser-known but incredibly useful Git commands that can make your workflow more efficient. This post covers some handy Git commands that might not be part of your daily routine but can be extremely valuable in specific situations:
- Finding Branches Containing a Specific Commit
- Finding the Merge Base Between Two Branches
- Finding Changes Between Commits
- Stashing Untracked Files
- Searching Through Commit History
- Checking Out Pull Requests Locally
- Recovering Lost Commits
Add Giscus Comments to Docusaurus
Adding a comment section to your Docusaurus blog can increase engagement with your readers. Giscus is an excellent choice as it uses GitHub Discussions as a backend, allowing readers to comment using their GitHub accounts without requiring additional authentication systems.
Clean Up System Data on iPhone
I've been struggling with System Data on my iPhone taking up all the storage. I tried many solutions, including this discussion thread, but nothing worked.
Finally, I found a solution that reduced my System Data from 17GB to 1.57GB!
How to Install HP LaserJet 1020 on Mac
Steps to install HP LaserJet 1020 printer on macOS.
How to Find Branches a Commit Belongs To
Need to find which branches contain a specific commit? Here's how.
Customize HTML in Vitest
In some scenarios, you may want to customize the HTML in Vitest to align with your actual app's HTML structure. You can do it by one of the following options:
Restore Overridden console.log
Sometimes during development, you might encounter situations where console.log has been overridden. This commonly happens in production builds where logging is disabled to prevent exposing sensitive information or to improve performance. However, when debugging, you might need to restore the original console.log functionality.
Remove old service worker
Recently, I migrated a documentation page from Gatsby to Docusaurus. However, after I deployed a new version of the docs but I still see the cached version of the old docs. The reason is that the Gatsby version of the docs has a service worker that caches the artifacts. So, I need to remove the old service worker manually via Chrome Devtools.
Remove file or folder recursively
How to remove files and folders with a name pattern recursively?
