Suman Chapai·Jun 14, 2024Redoing git mergetool using vimdiffWhen you save and exit out of files in vimdiff, git thinks that you’ve resolved the conflicts. If you haven’t, you can tell git so using
Suman Chapai·Mar 11, 2024JSON prettify command line pipeIf you fetch JSON through curl or other cmd utlity and want to see it prettified, simply pipe your original command to python -m json.tool…
Suman Chapai·Feb 27, 2024Updating major version in your go packageIf you are updating major version of your go package, you must also modify the go.mod file with the version tag. This is to address the go…
Suman Chapai·Feb 9, 2024Adding git files with asterisks. pattern matchhttps://www.tempertemper.net/blog/adding-files-for-a-commit-with-asterisks
Suman Chapai·Jan 21, 2024Vim quickfixPretty useful when using with telescope… select items with tab, open selected with quickfix using meta-q
Suman Chapai·Sep 5, 2023Proxy vs Reverse ProxyProxy, literally, is a “representative”, something/someone that can act on the behalf of others. In networking sense, a proxy is a server…
Suman Chapai·Sep 3, 2023Sleek. GoGo’s source code is always so sleek. This mostly comes from the Unix-y authors who like the Go authors and their relatives were mostly…
Suman Chapai·Sep 3, 2023IO in Go / Unix.Python being my first language, I wasn’t used to the idea that stdin, stdout are merely files (or at least treated as such). Everything is…A response icon1A response icon1