This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkcert local "*.local" localhost 127.0.0.1 ::1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Fetch the latest changes from the remote repository | |
| git fetch | |
| # Get the list of all branches (excluding main) | |
| branches=($(git branch -r | grep -v 'origin/main' | sed 's/origin\///' | tr -d ' ')) | |
| # Loop through each branch and compare with main | |
| for branch in "${branches[@]}"; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Fetch the latest changes from the remote repository | |
| git fetch | |
| # Get the list of all branches (excluding main) | |
| $branches = git branch -r | Where-Object { $_ -notlike '*origin/main*' } | ForEach-Object { $_.Trim() -replace 'origin/', '' } | |
| # Create an array to store branch information | |
| $results = @() | |
| # Loop through each branch and compare with main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -d --name dev-mongodb -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=devuser -e MONGO_INITDB_ROOT_PASSWORD=devpass12345678 mongo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "******************************************************************************************" | |
| echo "** UPDATING BASE IMAGE TOOLS **" | |
| echo "******************************************************************************************" | |
| apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "******************************************************************************************" | |
| echo "** INSTALLING CHROME BROWSER **" | |
| echo "******************************************************************************************" | |
| ARCH=$(dpkg --print-architecture) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.mycollection.updateMany({}, { $unset: { "arrayProperty.$[].fieldToRemove": "" } }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.mycollection.updateMany({}, { $unset: { "fieldToRemove": "" } }); |
NewerOlder