Posts

Copy GitLab main branch code to GitHub DEV branch || replace GitLab main branch with GitHub DEV branch

Image
 Step:1 Clone GitLab Repository If you haven't already, clone your GitLab repository to your local machine.                git clone <GitLab_Repository_URL> Step:2 Add GitHub Repository as a Remote Add the GitHub repository as a remote to your local GitLab repository.                git remote add github <GitHub_Repository_URL> Step:3 Fetch the GitHub DEV Branch Fetch the main branch from the GitHub repository.                git fetch github DEV Step:4  Reset GitLab Main Branch Reset the GitLab main branch to match the GitHub DEV branch. Checkout to main if you are currently not in main branch in your locally,then run below command                git reset --hard github/DEV Step:5 Force Push to GitLab Force-push the updated main branch to the GitLab repository. Warnin...

Step-by-Step Tutorial: How to Backup and Restore MongoDB Databases 2023

Image
Step-by-Step Tutorial: How to Backup and Restore MongoDB Databases  Step 1:     Check  MongoDB Command Line Database Tools downloaded or not.     Go to " C:\Program Files\MongoDB " and theck wheather Tools folder is present or only Server      folder is there.                  If present then go to step 3 otherwise go to step 2 for download and install MongoDB     Command  Line Database Tools. Step 2:  Go to this link : " https://www.mongodb.com/try/download/database-tools  "   and scroll below on this page to find  MongoDB Command Line Database Tools Download or ctrl+f then paste there  MongoDB Command Line Database Tools Download  ,this will take you to Download option. The change and set the package,platform and version options as I have set in below screenshot then CLICK ON Download Button. After download install the same.  ...

Git branch naming conventions(Most important)

Image
Git branch naming conventions: Git branch naming conventions can vary based on the development workflow and team preferences. However, some common conventions are followed by many teams to help keep branches organized and easily understandable. Here are a few common naming conventions for Git branches: Feature Branches:           Feature branches are used for adding new features or enhancements to the application. A common           convention for naming feature branches is feature/branch-name.           Examples:                     feature/user-authentication                     feature/shopping-cart     2.  Bugfix Branches:           Bugfix branches are used to fix bugs or issues in the application. A common convention for  ...

Beware of SBI Card Fraud: My Close Call and Important Tips to Stay Safe sbicreditcard808 | 2023

Image
 Introduction: In this blog, I would like to share my personal experience with a potential SBI Card fraud that I narrowly escaped. As a software developer, I was able to identify the red flags and avoid becoming a victim. However, I believe it is crucial to raise awareness about such scams to protect others. In this article, I will recount the incident, discuss common tactics used by fraudsters, and provide useful tips to help you stay safe from credit card and insurance fraud. If you find this information valuable, please share it with your loved ones to spread awareness. My Encounter with a Potential SBI Card Fraud: Earlier today, I received an unexpected call informing me that an insurance policy had been activated in my name. The caller claimed that today was the last day to deactivate the policy; otherwise, a charge of ₹1399.00 would be levied on my SBI credit card. Immediately, this raised suspicion as I had never activated any such insurance policy.      ...

How to prevent showing the selected options again in the Autocomplete suggestions ? (Material UI/React)

Image
  How to prevent showing the selected options again in the Autocomplete suggestions ? Issue, Ans. Below the filterOptions function filters the options based on two criteria: The option is not a duplicate of a selected option The option label matches the input value The function returns only the options that meet both criteria, and these are the options that are shown in the Autocomplete suggestions. const options = users ?. map (( user ) => ({         label : ` ${ user ?. firstName } ${ user ?. lastName } - ${ user ?. email } ` ,         value : user ?. email ,         // avatar: <Avatar alt={user?.firstName} src={API_BASE_URL + user?.avatar} />     })) ?? [];  { ! formik . values . alumni && < Box >       < Autocomplete       multiple         id = "tags-outlined"         options = { options }   ...