Dmitry Avtonomov
Dmitry Avtonomov
About
Posts
Projects
Publications
Designs
Contact
Light
Dark
Automatic
howto
How to find large files in Git history: a one-liner
One liner: git rev-list --objects --all \ | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ | sed -n 's/^blob //p' \ | sort --numeric-sort --key=2 \ | cut -c 1-12,41- \ | $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest Credit SO: https://stackoverflow.
2021-429-124
1 min read
howto
How to view Git changes on a single branch since its creation
The command: git log --oneline master..feature/some-branch Will show commits on feature branch since it was forked off master. Suppose you have a repo that looks like this: base - A - B - C - D (master) \ \- X - Y - Z (myBranch) Verify the repo status:
2021-429-124
1 min read
howto
How to remove "other search engines" from Chrome
Open the Chrome search engine settings page: chrome://settings/searchEngines Selector for topmost “Remove search engine” button in “Other search engines” list: document.querySelector("body > settings-ui").shadowRoot .querySelector("#main").shadowRoot .querySelector("settings-basic-page").shadowRoot .querySelector("#basicPage > settings-section.expanded > settings-search-page").
2021-429-124
1 min read
howto
How-to: Git clean up .orig files generated after conflict resolution
Preamble After a merge conflict resolution you’re often left with files ending with .orig extension. I have them added to my global .gitignore. Hence I can’t easily get rid of them with regular: git clean -fd.
2021-429-124
1 min read
howto
Auto Resize Guest VM Desktop running under VMWare
In VMWare Workstation guest OS desktop doesn’t auto-resize to fill host OS window after first reboot. Solution.
2020-514-125
1 min read
howto
Installing ExpressVPN client on Manjaro Linux
How to install expressvpn client on a fresh install of Manjaro / Arch
2020-512-125
1 min read
Fixing VMWare Workstation `Device/Credential Guard are not compatible` and `64-bit Guest OS can't run on 32-bit host` errors
2020-512-125
1 min read
Zipping all relevant files in a git repo
How to make a zip copy of all git repo files without garbage
2020-126-61
1 min read
Adding all existing submodules to a git repo
You have a git repo which contains sub-directories which are git repos themselves and now you want them to become submodules. Here’s a quick automatic way to add them all.
2018-1125-1211
2 min read
Cite
×