Windows Subsystem for Linux(WSL) Reset password

Posted on October 06, 2022 in OS • Tagged with WSL, Windows11, Password, WSL2

Windows Subsystem for Linux (WSL2) Reset Password

  1. Open cmd.exe
  2. wsl -u root
  3. passwd root
  4. Enter New password
  5. Renter New password
  6. exit
  7. wsl
  8. Test using sudo echo "test" , you should see "test" message

Git checkout only specific sub folder or sub module

Posted on September 22, 2022 in git • Tagged with GIT

Git - How to checkout only specific subfolder from the github

Often we just need to clone/download a subfolder/submodule from a bit repo Example : https://github.com/eugenp/tutorials - This is very big repo with lot of subdirectories

This project has 100's of submodule , however if you are just …


Continue reading

Docker , Docker compose network isssues

Posted on March 25, 2022 in CI/CD , Docker • Tagged with GIT, Pipeline, CI/CD, Docker, Docker network

How i traiged issues with docker/docker compose while setting up CI/CD

Usecase : Setup a Docker compose file to bringup entire infrastructure required to to test a microservice(infact combination of couple of microservices as we wanted to run domain based integration tests) as part of the CICD pipelines …


Continue reading

Docker Windows Tips-Trics

Posted on February 20, 2022 in Docker • Tagged with GIT, Pipeline, Docker, Docker Compose

Docker Windows Tips-Trics

Struggling to mount a host directory on windows machine?

Tip : Use "%cd%" instead of Linux command $(pwd) in Windows

docker run --name compare -it --rm -v "%cd%/report":/usr/app/src/report -v "%cd%/data":/usr/app/src/data ito-compare-excel:latest

Override Default Entry point in docker …


Continue reading

Gitlab Scripts for automatic release notes(CHANGELOG.md) generation

Posted on February 12, 2022 in CI/CD • Tagged with GIT, Pipeline, CI/CD, Release Notes, Changelog.md

Gitlab Sample Script to generate Release Notes(CHANGELOG.md) autotmatically as part of the CI/CD pipeline

Very Common Usecase is genrate Release Notes(CHANGELOG.md) automatically. Below use case here has two jobs underr release-creation stage. One to generate CHANGELOG.md and other to generate release automatically. i.e …


Continue reading

Why Temporal - A Microservice Orchestrator Platform

Posted on January 05, 2022 in Temporal • Tagged with microservice, fault-tolerance, high-availability, Temporal

Why Temporal - A Microservice Orchestrator Platform

Temporal Tagline - Taglines for Temporal were “fault oblivious code — it does not know failure” and “stateful workflow engine.”

In the world of microservices, every customer interaction often requires coordination across many services. However, as is often the case, a solution to one problem can …


Continue reading

CORS with POSTMAN however "No 'Access-Control-Allow-Origin' from a browser

Posted on September 12, 2021 in Postman , CORS , JavaScript • Tagged with Postman, CORS, Javascript

CORS with POSTMAN compared to Browser - "No 'Access-Control-Allow-Origin' from a browser

One of the common questions is Why browser throwing 'Access-Control-Allow-Origin' header , however no issues with Postman Desktop tool

CORS Error: The request is blocked because of the Cross-Origin Resource Sharing (CORS) policy.
Error: Browser does not support cross-origin requests …

Continue reading

NRQL- New Relics query language Quick Reference Guide

Posted on August 02, 2021 in Observability • Tagged with NewRelic, NRQL

NewRelic NRQL Quick Reference Guide

Select results in the given time of the hours SELECT hourof(timestamp) FROM Transaction WHERE your_where_cluase and hourof(timestamp) in ('01:00','02:00','03:00','04:00','05:00','06:00','07:00','08:00') SINCE this week

Select results in the given time …


Continue reading

How to install NodeJS on Amazon Linux Worspace

Posted on July 25, 2021 in Worspace • Tagged with AWS, Worksapce, Install, NodeJS

How to install NodeJS on Amazon Linux Workspace

Configure Yum repo

sudo yum install -y gcc-c++ make 
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash - 

Install

sudo yum install -y nodejs 

Check Version

node -v

Pelican Static Site Continous Delivery to AWS S3 using github actions

Posted on July 11, 2021 in Performance • Tagged with WebSite, S3, Pelican

Pelican Static Site Continous Delivery to AWS S3 using github actions

Usecase : If you alredy have a Pelican Markdown based static generator as a platform for your static site and is hosted in AWS S3 and you dont wanted to manage any of the below things except creating the content …


Continue reading