All technological notes.
| Shortcut | Action |
|---|---|
:set nu |
Show Line Numbers |
V + > |
Indent visually selected lines |
>> |
Indent current line |
<< |
Outdent current line |
5>> |
Indent the next 5 lines |
= |
Auto-align selected lines |
YAML / yet another markup language / YAML ain't markup language
.yaml / .yml#---
---
# document 1
codename: YAML
name: YAML ain't markup language
release: 2001
---
# document 2
uses:
- configuration language
- data persistence
- internet messaging
- cross-language data sharing
---
# document 3
company: spacelift
domain:
- devops
- devsecops
tutorial:
- name: yaml
- type: awesome
- rank: 1
- born: 2001
author: omkarbirade
published: true
scalar
>
message: >
even though
it looks like
this is a multiline message,
it is actually not
# ==
message: "even though it looks like this is a multiline message,it is actually not"
|
message: |
this is
a real multiline
message
mapping
Fruit: Apple
Vegetable: Carrot
Liquid: Water
Meat: Chicken
Banana:
Calories: 105
Fat: 0.4 g
Carbs: 27 g
Grapes:
Calories: 62
Fat: 0.3 g
Carbs: 16 g
sequences
-).[]Fruits:
- Orange
- Apple
- Banna
Vegetables: [Carrot, Cauliflower, Tomato]
Fruits:
- Banana:
Calories: 105
Fat: 0.4 g
Carbs: 27 g
- Grapes:
Calories: 62
Fat: 0.3 g
Carbs: 16 g
apiVersion:
kind:
metadata:
spec:
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
# user custom label
labels:
app: myapp
type: front-end
spec:
# a list
containers:
- name: nginx-container
image: nginx
| Kind | Version |
|---|---|
| pod | v1 |
| Service | v1 |
| ReplicaSet | apps/v1 |
| Deployment | apps/v1 |