Posts in 2022

  • Export AWS RDS From One Account to Another Account or Region

    Wednesday, August 03, 2022 in MySQL

    Take a snapshot of the RDS Open AWS RDS console in the source account Make sure you are in correct region Select the required instance Click Actions -> Take snapshot Enter a name for snapshot Click Take …

    Read more

  • How to Setup Ubuntu WSL in Windows Server 2019

    Wednesday, August 03, 2022 in AWS

    Enable WSL Run PowerShell as a Administrator (i.e. Look for “PowerShell” in windows menu and right click and click on “Run as Administrator”) In the PowerShell type wsl If it displays a command not found then execute the …

    Read more

  • Configure and Login to SSO Using Cli Aws Profile

    Wednesday, May 25, 2022 in AWS

    Configure a new SSO profile $ aws configure sso --profile my-test-profile This will ask for the SSO URL and the region. Enter the URL that you use in the SSO portal. SSO start URL [None]: https://<my-account> SSO Region …

    Read more

Posts in 2021

  • robots.txt

    Saturday, October 02, 2021 in Web

    Allow All User-agent: * Disallow: Disallow All User-agent: * Disallow: / Disallow specific files User-agent: * Disallow: /my-path/ Disallow: /some-path/some-file.html Disallow: /my-dir/ prevents search engine indexing any files under the path …

    Read more

  • How to Convert String to Blob

    Friday, July 23, 2021 in JavaScript

    The simplest way is to use the Blob constructor. To convert a string to Blob const str = 'hello world'; const blob = new Blob([str], { type : 'plain/text' }); To convert a JSON to Blob const obj = { hello: 'world' }; const …

    Read more

  • Run a Shell Script With Environment Variables in One Line

    Monday, July 19, 2021 in Shell

    env1=a env2=b e.g. my_var1=abc my_var2=xyz ./

    Read more

  • Difference Between Promise and Observable Subscription

    Saturday, July 17, 2021 in NodeJS

    Anyone who looks Promise and Observable at first it might looks like they both solve the same purpose i.e.they both used for asynchronous functionality, and immediately question arises what is the difference? which one is best? Which one I should …

    Read more

Posts in 2020

  • Sed

    Saturday, October 31, 2020 in Shell

    SED: Delete lines from file (delete command) Description Command Input Output Delete the line 2 and 5from the file my.txt sed -e '2d' -e '5d' my.txt Or sed -e '2d;5d' my.txt line - one line - two line - three line - four line - five line - six line - …

    Read more

  • Git Add

    Friday, October 30, 2020 in Git

    Git Version 2.x Command New File Modified File Deleted File Summary git add -A Y Y Y Stage new, modified, deleted git add . Y Y Y Stage new, modified, deleted git add --ignore-removal . Y Y N Stage new and modified files (Deleted files not staged) …

    Read more

Posts in 2019

  • Mysql Mariadb Set Update Password

    Saturday, November 30, 2019 in MySQL

    Using mysqladmin CLI If you installed the db with empty password then set the password sudo mysqladmin password "<<new-password>>" -- OR mysqladmin --user=root password "<<new-password>>" Change the existing …

    Read more