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
[ | |
"ci", | |
"chore", | |
"docs", | |
"feat", | |
"fix", | |
"perf", | |
"refactor", | |
"revert", | |
"style", |
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
docker run -it <image-name> # for run new image (if not present locally then docker install it from 'hub.docker.com') | |
docker run -it -p system-port:docker-port <service-name> # port mapping | |
docker run -it -p system-port:docker-port -e key='value' -e key='value' <service-name> # port mapping with setting env | |
docker exec <container-name> <command> # for execute a command inside specified container | |
docker pull <image-name> # for pull docker image using image-names |
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
Basic Commands: | |
git clone [url] | |
- clone repository | |
git log | |
- show recent commits and tell where head & origin are stands in present branch | |
git status | |
- check your working tree changes | |
git fetch --all | |
- update branch info on local |
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
npm --version | |
- tells the node-package-manager version (shorthand use '-v' instead of 'version') | |
npm init | |
- initialize package.json | |
npm install | |
- install all node packages that are written as dependencies in packages.json (shorthand use 'i' instead of 'install') | |
npm install <package-name> <package-name> | |
- install specified packages (-D and --save-dev for install as dev-dependencies) (-g for install globally) | |
npm uninstall <package-name> | |
- uninstall packages |
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
# self made functions | |
killPortFunction() { | |
if [ -z "$1" ]; then | |
echo "Usage: killPort <port>" | |
return 1 | |
fi | |
echo "Killing process on port $1" | |
sudo kill -9 $(sudo lsof -t -i:$1) | |
} |
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
import nodemailer from 'nodemailer'; | |
export default function (from, appPassword, to, subject, htmlMsg) { | |
return new Promise((resolve, reject) => { | |
const mailOptions = { | |
from: from, | |
to: to, | |
subject: subject, | |
html: htmlMsg, | |
}; |