oh my bash

Customize your Mac or Linux prompt or terminal

Do you have a MacOs laptop? I am not an Apple fan. In fact, I have in the past, bought a Macbook Pro and returned it within the first fourteen days as I felt that what I got was not worth the price. However, as I have mentioned several times in the past in this blog, my career started on Linux and hence I do like and feel really comfortable navigating the command line....

January 23, 2022 · 2 min · 299 words
SRE

Site Reliability Engineering vs Devops: What are they? How do they differ?

What is SRE? SRE stands for Site Reliability Engineering. That’s just a lot of words. What does it mean though? Site Reliability engineering is what IT operations would be if it was run by software engineers. That’s an interesting take. But it was not helpful in clarifying anything about SRE just yet. Let’s try probing more. How did we go from Development to SRE? You know the part where people deploy software and then ensure things run fine in production....

December 4, 2021 · 14 min · 2849 words
Azure Functions

How to use complex settings in Azure Functions using Options pattern and Dependency injection

I only recently found out about this, so I had to share it immediately. I have been using the Values section in the local.settings.json in a not-recommended way for some time. Application settings in the local.settings.json has some naming restrictions which I have been ignoring as the way I used it seemed to work. The docs said: Values must be strings and not JSON objects or arrays. Setting names can't include a colon (:) or a double underline (__)....

October 22, 2021 · 2 min · 345 words
CI Pipeline

Azure Pipelines and test code coverage for Dotnet core projects

Background I am proud to say that I work in a team where we follow Test Driven Development and pair programming. This has been a life changing experience for me as for several years, I had been writing code first and only writing tests after I thought it was doing what it meant to be doing which often lead to tests that only tested the bare minimum or lead to poorly thought out code that was badly coupled....

June 29, 2021 · 7 min · 1432 words
EF Core

Entity Framework Core: Configure Database Connection using Azure Service Token Provider

Update - READ THIS FIRST There is now support to connect to any Azure SQL database, Azure SQL Managed Instance and Synapse SQL in Azure Synapse Analytics from your .NET Core app using just the connection string. To learn more about this read the following pages: Use Azure Active Directory Authentication with your Azure DB Using Azure Active Directory auth with SqlClient This will completely eliminate the need to write any code to obtain a service connection in your application....

June 26, 2021 · 11 min · 2319 words