mandarvaze.hashnode.devFirefox Reader Mode in your TerminalI'm trying to move to more text based workflows. On that journey, I came across readable readable strips out just the readability code from mozilla's firefox engine and provides it as a node module. npm install -g readability-cli will install a scrip...Jan 12, 2022·1 min read
mandarvaze.hashnode.devHow to Implement Role based Access Control With FastAPIWhat is Role based Access Control (RBAC) Most of the CRUD apps, require some level of role based access control. You may have at least two types of users. Elevated permission user (admin, root or superuser) Normal user aka everyone else ;) More lik...Sep 30, 2020·3 min read
mandarvaze.hashnode.devWhy my tests fail only during pre-commit ?Symptom Recently I ran across (what I thought was) strange behaviour. I use pre-commit for all my git commits, and one of the step is to ensure that all the unit tests pass. I also have a make target to run just the unit tests. Each time when I tried...Jul 27, 2020·2 min read
mandarvaze.hashnode.devHow to Run Google Chrome from Docker on MacOSBackground Some days ago, I got a call from someone asking for a solution. Due to global pandemic they were unable to hand over a laptop to new employee. They wanted the new employee to access a certain websites but did not wish to share the password...May 25, 2020·2 min read
mandarvaze.hashnode.devHow to Safely use Google Application Credentials on HerokuProblem If you have deployed an app on heroku, you know that the only way to get any files there is via git. Normally this is fine, but Google API expects an environment variable GOOGLE_APPLICATION_CREDENTIALS that points to a json file. If you googl...Jan 2, 2020·2 min read