Operator Precedence
...describes the nesting order of compound expressions of different operator types.
Operator Associativity
#!/bin/bash | |
version="$1" | |
major=0 | |
minor=0 | |
build=0 | |
# break down the version number into it's components | |
regex="([0-9]+).([0-9]+).([0-9]+)" | |
if [[ $version =~ $regex ]]; then |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
server { | |
listen 80; | |
server_name yournamehere.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name yournamehere.com; |
# Use nano instead of vim | |
EDITOR=nano | |
# always list in long format | |
alias ls='ls -la --color' | |
# set dynamic prompt and window/tab title | |
PS1='\[\e]0;${PWD##*/}\a\]\n' # set window title | |
#PS1="$PS1"'\u@\h ' # user@host<space> | |
PS1="$PS1"'\[\033[32m\]' # change color |