- Python 3
- Pip 3
$ brew install python3
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
ENVPATH ?= .venv | |
all: help | |
help: ## Show available targets message | |
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% 0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | |
## Configure virtual environment and install dependencies | |
venv-configure: ## Configure virtual environment and install dependencies | |
@echo ">>> Configure virtual environment..." |
# must be unique in a given SonarQube instance | |
sonar.projectKey=my:project | |
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. | |
sonar.projectName=My project | |
sonar.projectVersion=1.0 | |
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | |
# Since SonarQube 4.2, this property is optional if sonar.modules is set. | |
# If not set, SonarQube starts looking for source code from the directory containing | |
# the sonar-project.properties file. |
node { | |
// Mark the code checkout 'stage'.... | |
stage 'Checkout' | |
checkout scm | |
stage 'Configure' | |
env.PATH = "${tool 'Maven 3'}/bin:${env.PATH}" | |
// Mark the code build 'stage'.... | |
stage('Build') { |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \[\033[32m\]\W\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
[alias] | |
lg = !"git lg1" | |
lg1 = !"git lg1-specific" | |
lg2 = !"git lg2-specific" | |
lg3 = !"git lg3-specific" | |
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' | |
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' | |
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)' |