Insert the result of a command to the current file:
# insert result of ls to current file
:r !ls
where
:r --> :r file Read contents of a file to the workspace
Insert the result of a command to the current file:
# insert result of ls to current file
:r !ls
where
:r --> :r file Read contents of a file to the workspace
Learnt something new this week
I have two files where I want to concat the two column together to create a readme table
$ cat fruit
apple
pineapple
orange
lemon
Run Jupyter notebook using pipenv
pipenv shell
pipenv install jupyter
pipenv run jupyter notebook
Request and limit in kubernetes
Request
Limit
Over subscribe resources
A few rules applied when using Entrypoint and CMD
docker run imagename overwrite-cmd-here
--entrypoint
its a bit harder than CMDTo allow user pass in commandline argument during docker run
Dockerfile
jobs -p | grep -o -E '\s\d+\s' | xargs kill
git checkout SHA <path/to/file>
cat /etc/os-release
lsb_release -a
hostnamectl
vim offer
+
or *
to access system clipboard"
for the unnamed registry which is the last thing y
or d
CTRL+r
Insert the contents of a register in insert mode.
Hence we can do the following to
vim has something called registers which is like spaces that allow us to store text information and allow us to access it using its identifier
default registers
+
and *
system clipboard"
unnamed register where everything last yank/delete will be therenumbered registers
read only registry