Posts in 2022
-
Export AWS RDS From One Account to Another Account or Region
Wednesday, August 03, 2022 in MySQL
Categories:
2 minute read
Take a snapshot of the RDS Open AWS RDS console in the source account https://console.aws.amazon.com/rds/home Make sure you are in correct region Select the required instance Click Actions -> Take snapshot Enter a name for snapshot Click Take …
-
How to Setup Ubuntu WSL in Windows Server 2019
Wednesday, August 03, 2022 in AWS
Categories:
2 minute read
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 …
-
Configure and Login to SSO Using Cli Aws Profile
Wednesday, May 25, 2022 in AWS
Categories:
2 minute read
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>.awsapps.com/start SSO Region …
Posts in 2021
-
robots.txt
Saturday, October 02, 2021 in Web
Categories:
less than a minute
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 …
-
How to Convert String to Blob
Friday, July 23, 2021 in JavaScript
Categories:
less than a minute
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 …
-
Run a Shell Script With Environment Variables in One Line
Monday, July 19, 2021 in Shell
Categories:
less than a minute
env1=a env2=b e.g. my_var1=abc my_var2=xyz ./myscript.sh
-
Difference Between Promise and Observable Subscription
Saturday, July 17, 2021 in NodeJS
Categories:
2 minute read
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 …
Posts in 2020
-
Sed
Saturday, October 31, 2020 in Shell
Categories:
6 minute read
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 - …
-
Git Add
Friday, October 30, 2020 in Git
Categories:
less than a minute
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) …
Posts in 2019
-
Mysql Mariadb Set Update Password
Saturday, November 30, 2019 in MySQL
less than a minute
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 …