-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCmDLines.txt
104 lines (78 loc) · 3.54 KB
/
CmDLines.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Command-Line
Important "Command Lines" for VS-Code | IntelliJ
![alt text](https://image.noelshack.com/fichiers/2023/01/3/1672808213-shell2.png)
How To Create New Directory on MAC:
------------------------------------
Pwd ⮕ check where you at
Ls ⮕ list of file
Mkdir <dir name> --- creates a new directory
Cd <directory> ⮕ takes you inside the directory
Cd .. ⮕ brings you back to the previous directory
Node --version (node -v) ⮕ version of current node software
------------------------------------
Ng version ⮕ version of current Ng software
Ng test ⮕ runs unit Test In a Project
Ng serve ⮕ builds and serves your app, rebuilding on file changes
Ng test --watch=true ⮕ runs test without stops
Ng add -p ⮕ stage
------------------------------------
Git --version ⮕ version of current Git software
Git checkout feature/ ⮕ switch to a different branch
Git checkout master ⮕ go to master
Git pull ⮕ pull data from remote repo
Git checkout -b ⮕ create a new branch for the first time
Git add . ⮕ add files and changes made before commit
Git add -a ⮕ best way to check all files and changes made (Better than get add .)
Git commit -m "<commit-message>" ⮕ how to push changes info
Git commit -m "<commit-message>" --no-verify ⮕ commit changes without verifying (bypass ESlint)
Git push / Git push --set-upstream origin ⮕ push changes to master
Git add -p ⮕ stage
Git stash ⮕ commit all changes (git stash, git pull, git checkout)
Git checkout -b feature/ ⮕ create new branch
Git branch -d ⮕ delete a branch
Git push origin --delete master ⮕ force delete branch even if changes has been pushed
Git fetch --prune ⮕ delete old branches
------------------------------------
Npm install (npm i) ⮕ install all dependencies
Npm run build ⮕ build packages
Npm --version ⮕ version of current npm software
Npm run test:debug ⮕ runs karma & test chrome
Npm run test:coverage ⮕ show errors in files (copy path)
Npm run test:watch --true ⮕ keeps test running
Npm run start:driver-app ⮕ runs driver app
Npm run start:micro-app ⮕ runs micro app
Npm run build:micro-app ⮕ builds micro app
-------------------------------------
-------- Next.js --------------------
Npx create-next-app
Npx nx build app
Npm i next@latest react@latest react-dom@latest eslint-config-next@latest
Npm run nextjs@0.1.0 dev
-------------------------------------
./gradlew bootrun ⮕ runs outer api
./gradlew clean ⮕ cleans code
./gradlew build ⮕ builds code
./gradlew clean build ⮕ perform clean and build at the same time
------------------------------------
Cmd Q ⮕ close tab
Cmd N ⮕ delete tab
Cmd Z ⮕ undo
Cmd + K + C ⮕ comment
------------------------------------
Ctrl C ⮕ kill top (stop running code)
------------------------------------
Tailwinds ⮕
Align items center ⮕ flex items-center justify-center h-screen
flex: Adds the display: flex CSS property
justify-center: This centers the div horizontally
items-center: This centers the content vertically
h-screen: Sets the 100vh (screen-height) as the height
Buttons ⮕ https://v1.tailwindcss.com/components/buttons
Visibility ⮕ https://v1.tailwindcss.com/docs/visibility
Background Color ⮕ https://tailwindcss.com/docs/background-color
Handling Hover, Focus, and Other States ⮕ https://tailwindcss.com/docs/hover-focus-and-other-states#
https://www.hyperui.dev/
------------------------------------
In Linux: host -t NS [yourdomain]
In Microsoft Windows: nslookup -query=NS [yourdomain]
make sure your server is running and can be accessed using the domain name: ping [yourdomain]