Powershell Core reference and handy stuff

Note: “$_” is used to refer to the “current object” which is passed to foreach in the loop. And $_.name is the “name” property of the current object in the loop. Use a list of item PIPED to a bash command  – Echo $list_of_items | xargs -L1 bash -c ‘<some bash command’ Example: az group […]

Ubuntu Linux – Handy stuff

Update all packaged :  $ sudo apt-get update Upgrade all packages: $ sudo apt-get upgrade What’s my Machine name and Linux Version $ > hostname $ > cat /etc/os-release What’s my Private IP $ > hostname -i $ > hostname -I |'{print $1}’ $ > ip route get 1.2.3.4 | awk ‘{print $7}’ What’s my […]

Architecture of Modern Software (Azure perspective)

https://azure.microsoft.com/en-us/training/distributed-cloud-apps/#fundamentals 6.5 hours of training material for free, including topics on: Fundamentals – Orchestration, Clusters, Microservices, Containers, 12 Factor App design, CI/CD Networking – Service endpoints, Forward/Reverse Proxies, DNS, Load balancing, API Versioning, Retries/Idempotency Messaging with queues – Benefits, Fault tolerance, Queue features Service upgrade & configuration – Service updates, Rolling updates, Shutdown and reconfigure […]

Identity Server and Multi Tenant Applications

Building a multi-tenant application using IDSVR4 and ASP.NET Core JWT Signing using RSASSA-PSS in .NET Core Article = https://www.scottbrady91.com/C-Sharp/JWT-Signing-using-RSASSA-PSS-in-dotnet-Core Repo = https://github.com/scottbrady91/Blog-Example-Classes/tree/master/RsaPssJwtSigning PKCE in IDSVR4 https://github.com/vinaylunawat/IdentityServerWithAuthorizationToken ASP.NET Core using Proof Key for Code Exchange (PKCE) https://www.scottbrady91.com/OpenID-Connect/ASPNET-Core-using-Proof-Key-for-Code-Exchange-PKCE https://github.com/scottbrady91/AspNetCore.Pkce ASP.NET Core Swagger UI Authorization using IdentityServer4 https://www.scottbrady91.com/Identity-Server/ASPNET-Core-Swagger-UI-Authorization-using-IdentityServer4 Finbuckle.MultiTenant is a multitenancy library for ASP.NET Core 2.1+. It […]

NVM

Node Version Manager Install nvm: sudo npm install nvm@latest -g nvm ls // lists node versions nvm alias default 10.16.0 // nvm alias stable 10.16.0 nvm uninstall v8.9.0 // uninstall node version 8.9.0 nvm which 10.16.0 // shows the path to node v10.16

DevOps Practice

Azure Pipelines – Integration with Github, Build pull requests prior to merge, Run tests, Deploy for any platform (Ubuntu, Mac, Windows). See more … (Azure Devops server 2019 can be used as Cloud hosted or setup On-Prem. The azure pipeline build yaml is checked in with your source code so your build process/tasks etc are […]

SOLID Principles

Single Responsibility Principle: A class should be limited to a single responsibility. There should be one and only one reason to change a class. Supported by Object Composition (Composites), Strategy/Template Pattern etc. Key guidelines clearly defined boundaries as to where a piece of functionality is “implemented”; information-hiding in components that protect the integrity of data; […]