-
List branches:
git branch
-
create new branch:
git checkout -b <NEW_BRANCH_NAME>
-
Push the branch on github:
git push origin <NEW_BRANCH_NAME>
-
Change working branch:
This file contains 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
#### Methode #1: | |
To debug in chrome dev tool: <br/> | |
1. run ```node --inspect-brk app.js``` | |
2. go to ```chrome://inspect ``` | |
---------------------------------- | |
#### Methode #2: <br/> | |
Using VS Code debugging <br/> |
This file contains 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
1- Change to the root of the local repository. | |
cd <YOUR_PROJECT> | |
2- List all your branches: | |
git branch -a | |
3- Checkout the branch you want to use. | |
git checkout feature | |
4- Confirm you are now working on that branch: |
This file contains 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
# list images | |
docker image ls | |
# build image from Dockerfile | |
docker image build -t "<name>:latest" <dockerfile_path> | |
ex: | |
docker image build -t "custom-ubu" Dockerfile | |
# remove image |
https://docs.microsoft.com/en-us/windows/wsl/install-manual#installing-your-distro
-
Downloading distros as *.appx file: Ubuntu 18.04 (https://aka.ms/wsl-ubuntu-1804)
-
Installing distro: Navigate to the folder contains (.appx) file, then run:
Add-AppxPackage .\app_name.appx
# Sample Inventory File
# Web Servers
web_node1 ansible_host=web01.xyz.com ansible_connection=winrm ansible_user=administrator ansible_password=Win$Pass
web_node2 ansible_host=web02.xyz.com ansible_connection=winrm ansible_user=administrator ansible_password=Win$Pass
web_node3 ansible_host=web03.xyz.com ansible_connection=winrm ansible_user=administrator ansible_password=Win$Pass
# Database Servers
1- Check to see if you already have an SSH key on your local machine
C:\Users\your-user\.ssh\id_rsa.pub
if not, create new key (Powershell cmd)