How to Reset a Single File in Git
If you've made changes to a file and want to discard them, you can use git checkout to restore it to the version from the last commit. This is useful when you want to undo changes that haven't…
Currently accepting new projects and available for hire.
Quick snippet to switch a Git remote URL from HTTPS to SSH for easier authentication with SSH keys.
git remote -v
git remote set-url origin git@github.com:USERNAME/REPOSITORY.git
Credit: docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories
If you've made changes to a file and want to discard them, you can use git checkout to restore it to the version from the last commit. This is useful when you want to undo changes that haven't…
This simple FFmpeg command merges a video file video.mp4 and an audio file audio.mp4 without re-encoding. It copies both streams as they are, ensuring fast processing and no quality loss.
A simple Bash script that renames all .png files in the current directory using randomly generated lowercase UUIDs. It ensures uuidgen is installed before execution and skips renaming if no…