You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🏠
Working from home
tian
4sskick
🏠
Working from home
short technical doc see: https://gist.github.com/4sskick
Recently, my manager assigned me a rather unusual task --- to manually
collect every commit ID related to a Jira card.
While Git already provides tools to automate this, I still had to gather
all commit hashes one by one.
📝 What Happened
I was working on feature updates when suddenly my manager pinged me: >
"Please list down all commit IDs for Jira card J2667."
Git Repository Cleanup & Large Object Reduction Report
🧠 Context
While maintaining a long-lived production repository, I noticed an unusually large .git/objects/pack file consuming hundreds of MBs.
This was affecting cloning speed, CI performance, and overall repository health.
full step-by-step guide to install Python 3.12 using pyenv safely inside WSL Ubuntu 20.04, including cleanup, setup, and verification commands.
Install Python 3.12 on Ubuntu 20.04 (WSL) using pyenv
This guide provides a clean and safe method to install Python 3.12 on Ubuntu 20.04 running under WSL2, without touching the system Python.
Linux distros normally have a Python version tied to the distro and used for various admin scripts. You should not expect to follow the latest releases of Python. And don't try to force change it because you could break your OS. If you need newer Python versions for your work, install it in user space.
Linux 20.04 come with python 3.8 which not supported natively to latest version of python (ex. 3.12.x), so by using pyenv will help you install other version of python without touching OS system, and it won't break your system.
A quick reference for detecting modified files inside node_modules after manual edits. Since Git ignores node_modules, this guide uses sha1sum (or md5sum) to track file integrity and identify which packages need patching — ideal for developers using yarn patch-package.
Detecting Changes in node_modules for Patch Package
When you edit files inside node_modules, Git does not track them
--- so git status won't help detect changes.
This guide explains how to use sha1sum (or md5sum) to detect
modified packages.
🐞 Git Incident Report: Local main Branch Got 19 Unexpected Commits
📅 What Happened
One morning, I had already finished developing a feature on a separate branch. Before creating a Pull Request (PR), I merged main into my feature branch to make sure everything was up to date.
After that, I switched to the main branch and ran:
reconnect on no devices found/emulator - MEMU emulator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listing `unwanted` file with suffix name on path then delete
I just download the project folder from website, but it the filename being duplicate which like main.ts and main.ts.Identifier. So instead of delete one-by-one, I just listing all the file then delete directly.