Flatcar Container Linux on Raspberry Pi

Flatcar Container Linux recently announced the Stable support for ARM64. Perfectly timed! I had a Raspberry Pi 4 lying around and had just ordered a few more to set up a home lab during the holidays. The newer Pis are yet to arrive, so better utilize the time writing a walkthrough on how to use Flatcar Container Linux on your Pis. ...

25 December 2021 · 6 min · Sayan Chowdhury

Love Boredom

I was talking to Jason today, discussing aspects of life and building habits. Last week was pretty rough, devoid of motivation to maintain my habits. To which he said to me, “to fall in love with boredom” and passed me a couple of blog post from James Clear. How to Fall in Love With Boredom and Unlock Your Mental Toughness How to Stay Focused When You Get Bored Working Toward Your Goals Lessons on Success and Deliberate Practice from Mozart, Picasso, and Kobe Bryant The first blog was one I could relate to in an instant. These days, the mind is easily, actually very easily distracted. ...

21 February 2021 · 2 min · Sayan Chowdhury

Managing Git configuration with git config

Git comes with this handy tool that let’s you manage your Git configuration with ease. Configuration Levels --local (Default) Local configuration values are stored and managed at the repository level. The values are stored in a file found in the repo’s .git directory: .git/config If you are planning to set some configuration only to be used by the specific repo you are in, then go ahead with using --local. git config --local user.email "sayan@mycompany.io" --global ...

2 May 2020 · 3 min · Sayan Chowdhury

Force git to use git:// instead of https://

I’m an advocate of using SSH authentication and connecting to services like Github, Gitlab, and many others. I do make sure that the use the git:// URL while cloning the repo but sometimes I do make mistake of using the https:// instead. Only to later realise when git prompts me to enter my username to authenticate the SSH connection. This is when I have to manually reset my git remote URL. ...

28 July 2019 · 1 min · Sayan Chowdhury

Editing an older commit in a pull request

Let’s say you’ve raised a Pull Request on GitHub with 3 commits as shown below. d46d2f8a (HEAD -> feature, devel/feature) Add Fedora system to handle the Fedora Cloud images f726b033 vendor: Add new dep github.com/ulikunitz/xz dbdbda67 Split release and pre-release to handle multiple systemsHere, d46d2f8a is the HEAD, followed by f726b033 and dbdbda67. Your reviewers go through the commits, and suggest changes to some files. The suggestions now need to be applied to the commit dbdbda67. How would you fix this? This is a jam I usually land myself in, as for review I prefer my commits to be concise, shows incremental changes and for each commit to be atomic. ...

3 February 2019 · 4 min · Sayan Chowdhury