Mukesh Chapagain Blog

  • Home
  • Mukesh Chapagain Blog

Mukesh Chapagain Blog PHP, Magento, Programming Tips & Tutorials | Information Technology

This article shows how you can check different services version on Adobe Cloud server. List all the services with their ...
27/08/2024

This article shows how you can check different services version on Adobe Cloud server. List all the services with their port number, username, & password echo $MAGENTO_CLOUD_RELATIONSHIPS | base64 -d | json_pp Get Redis version redis-cli -p 6370 info | grep -i redis_version where, 6370 is the port number. The redis port number can be 6372 as well sometimes. Get Opensearch version…...

FacebookTweetLinkedInPinPrintEmailShares This article shows how you can check different services version on Adobe Cloud server. List all the services with their port number, username, & password echo $MAGENTO_CLOUD_RELATIONSHIPS | base64 -d | json_pp Get Redis version redis-cli -p 6370 info | grep -...

This article shows how you can for a git repo and push your code contribution by creating a pull request (PR). Clone vs ...
06/05/2023

This article shows how you can for a git repo and push your code contribution by creating a pull request (PR). Clone vs Fork Clone Cloning is done directly to the local machine. Updates made to the origin/source repository can be pulled to the local machine (local repo). Fork Forking is done from origin/source repository to your own GitHub account. …...

FacebookTweetLinkedInPinPrintEmailShares This article shows how you can for a git repo and push your code contribution by creating a pull request (PR). Clone vs Fork Clone Cloning is done directly to the local machine. Updates made to the origin/source repository can be pulled to the local machine (...

Git: Fix differences created by line endings in files
26/04/2023

Git: Fix differences created by line endings in files

FacebookTweetLinkedInPinPrintEmailShares This article explains the issue created by line endings in code in different OS versions and also provides solutions to fix the issue by normalizing the line-endings in files. Introduction Files created/edited on Windows OS and Mac/Linux OS can have different...

Previously, I had written an article to create and apply patches using the git diff and git apply commands. In this arti...
16/04/2023

Previously, I had written an article to create and apply patches using the git diff and git apply commands. In this article, we will look into alternative git commands to create and apply git patches. Those commands are git format-patch (to create patch) and git am (to apply patch). Check commits in your branches Checkout to the master branch > git checkout master …...

FacebookTweetLinkedInPinPrintEmailShares Previously, I had written an article to create and apply patches using the git diff and git apply commands. In this article, we will look into alternative git commands to create and apply git patches. Those commands are git format-patch (to create patch) and....

This article shows how you can get differences in the git branch, file, or commits and create and apply git patches. > g...
06/04/2023

This article shows how you can get differences in the git branch, file, or commits and create and apply git patches. > git branch master * test > git checkout test > git log --oneline -n 5 04d3d11 (HEAD -> test) Update README 39fdf70 Update hello file 32547fa Add hello file 87ea803 (origin/master, origin/HEAD, master) Update README.md ( #904) 00d4c7d Add link …...

https://blog.chapagain.com.np/git-diff-create-apply-patch/

FacebookTweetLinkedInPinPrintEmailShares This article shows how you can get differences in the git branch, file, or commits and create and apply git patches. > git branch master * test > git checkout test > git log --oneline -n 5 04d3d11 (HEAD -> test) Update README 39fdf70 Update hello file 32547fa...

There can be a scenario where you would need to continue working on the work done by someone else on your team. In such ...
26/03/2023

There can be a scenario where you would need to continue working on the work done by someone else on your team. In such a case, you can pull your team member's fork branch and continue working on whatever is done in that team member's branch. You can add your code changed and push it and your team member can pull it in his/her local setup....

FacebookTweetLinkedInPinPrintEmailShares There can be a scenario where you would need to continue working on the work done by someone else on your team. In such a case, you can pull your team member’s fork branch and continue working on whatever is done in that team member’s branch. You can add ...

Git: Reset to older commit / Undo changes
16/03/2023

Git: Reset to older commit / Undo changes

FacebookTweetLinkedInPinPrintEmailShares This article shows how you can reset your git state to any older/previous commit and then push to your origin repository. Reset to older commit git reset --hard Example: git reset --hard 39fdf70 Force push to origin repository git push origin --...

What is Git HEAD? "HEAD" is an alias for your current working commit. It's the latest commit of your currently checked o...
06/03/2023

What is Git HEAD? "HEAD" is an alias for your current working commit. It's the latest commit of your currently checked out branch. If you checkout a another branch then HEAD will be the latest commit in that particular branch. Check Git HEAD status The following shows that the working directory is the tip of the master branch. > cat .git/HEAD ref: refs/heads/master …...

FacebookTweetLinkedInPinPrintEmailShares What is Git HEAD? “HEAD” is an alias for your current working commit. It’s the latest commit of your currently checked out branch. If you checkout a another branch then HEAD will be the latest commit in that particular branch. Check Git HEAD status The ...

I got the "url.indexOf and e.indexOf is not a function" errors on my website. I got this error after my upgrade to my Ma...
25/02/2023

I got the "url.indexOf and e.indexOf is not a function" errors on my website. I got this error after my upgrade to my Magento webshop, but this error can happen on any website with a jQuery version upgrade. Error: Uncaught TypeError: e.indexOf is not a function at w.fn.load (jquery-3.3.1.min.js:2:82468) at caribbean-montego-mntgo-shell:1483:19 at Object.execCb (require.js:1696:33) at Module.check (require.js:883:51) at Module. (require.js:1139:34) at require.js:134:23 at require.js:1189:21 at each (require.js:59:31) at Module.emit (require.js:1188:17) at Module.check (require.js:938:30) …...

FacebookTweetLinkedInPinPrintEmailShares I got the “url.indexOf and e.indexOf is not a function” errors on my website. I got this error after my upgrade to my Magento webshop, but this error can happen on any website with a jQuery version upgrade. Error: Uncaught TypeError: e.indexOf is not a fu...

This article shows how you can add/create Widget using Upgrade Script of a module in Magento 2. This code is useful when...
23/07/2019

This article shows how you can add/create Widget using Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/create widget while upgrading your custom module. Here, we will also create a CMS Static Block and assign that newly created static block to the Widget. Add Widget and Static Block via UpgradeData Setup Script… [ 101 more words ]

This article shows how you can add/create Widget using Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/create widget while upgrading your custom module. Here,…

This article shows how you can add or update CMS Static Block using Install or Upgrade Script of a module in Magento 2. ...
16/07/2019

This article shows how you can add or update CMS Static Block using Install or Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/edit cms static block while installing or upgrading your custom module. Add CMS Static Block from InstallData Setup Script This will add cms static block when you install your custom module for the first time. Here, I am using my custom module named `Chapagain_HelloWorld`. File: app/code/Chapagain/HelloWorld/Setup/InstallData.php

This article shows how you can add or update CMS Static Block using Install or Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/edit cms static block while ins…

This article shows how you can add or update CMS Page using Install or Upgrade Script of a module in Magento 2. This cod...
09/07/2019

This article shows how you can add or update CMS Page using Install or Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/edit cms page while installing or upgrading your custom module. Add CMS Page from InstallData Setup Script This will add cms page when you install your custom module for the first time. Here, I am using my custom module named `Chapagain_HelloWorld`. File: app/code/Chapagain/HelloWorld/Setup/InstallData.php

This article shows how you can add or update CMS Page using Install or Upgrade Script of a module in Magento 2. This code is useful when you need to auto add/edit cms page while installing or upgra…

Address


Alerts

Be the first to know and let us send you an email when Mukesh Chapagain Blog posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Mukesh Chapagain Blog:

Share