export PATH=$HOME/Downloads/nexus-3.58.1-02-unix/nexus-3.58.1-02/bin:$PATH- Dafault port and path: http://localhost:8081/
export PATH=$HOME/Downloads/nexus-3.58.1-02-unix/nexus-3.58.1-02/bin:$PATH| div { | |
| width: 100%; | |
| margin-top: 5%; | |
| text-align: center; | |
| } | |
| p { | |
| display: inline-block; | |
| width: 20%; | |
| margin: 5% auto; |
| { | |
| "workbench.colorCustomizations": { | |
| "activityBar.activeBackground": "#ff00ff", | |
| "activityBar.background": "#0000ff", | |
| "activityBar.foreground": "#00ff00", | |
| "activityBar.inactiveForeground": "#00ff0099", | |
| "activityBarBadge.background": "#ff00ff", | |
| "activityBarBadge.foreground": "#000000", | |
| "commandCenter.border": "#00ff0099", | |
| "sash.hoverBorder": "#ff00ff", |
To create a git hist alias in your Bash profile that:
you can add the following lines to your ~/.bash_profile or ~/.bashrc file:
# define a Bash function called git hist
git hist() {+----------+-----------------------+
| Country | Estimated Gun Count |
+----------+-----------------------+
| USA | Over 390 million |
| India | Over 70 million |
| China | Around 50 million |
| Pakistan | Over 20 million |
| Russia | Over 15 million |
| Brazil | Over 15 million |
git rev-parse --abbrev-ref HEADHEAD keyword refers to the currently active commit--abbrev-ref ensures that only the branch name (without the "refs/heads/" prefix) is returned.$(...) syntax to execute shell commands within the command line. $(...) is called command substitution in Bash.git rev-parse command to be used as an argument to git push origin.git push origin $(git rev-parse --abbrev-ref HEAD)| function calculateAdditionalStocks(initialStocks, initialPrice, currentPrice, targetPrice) { | |
| const initialInvestment = initialStocks * initialPrice; | |
| const currentHoldingValue = initialStocks * currentPrice; | |
| const loss = initialInvestment - currentHoldingValue; | |
| const additionalInvestmentNeeded = initialInvestment - targetPrice * initialStocks; | |
| const additionalStocks = Math.ceil(additionalInvestmentNeeded / currentPrice); | |
| return additionalStocks; | |
| } |
| #!/bin/bash | |
| # this file recursively traverse through each sub-folder inside the parent folder | |
| # it performs the git actions e.g. stash, rebase from main and move on as specified | |
| # it also waits for manual conflict resolution if necessary | |
| # set permission for this file: chmod +x checkout-all-repos.sh | |
| # execute the script: `./checkout-all-repos.sh` | |
Debugging Node.js in a Docker container
First, we’ll need to create a Dockerfile,
FROM node