(Random) essentials
Markdown
Learn markdown(this is a markdown document 🤓)
- original markdown docs by John Gruber https://daringfireball.net/projects/markdown/
- a cheatsheet https://www.markdownguide.org/cheat-sheet/
- githubs markdown docs
Vim
Vim is everywhere so no matter if you ssh into a place or try to edit a file in a container, you are going to need it.
Here is a super minimal cheat sheet:
# edit/create a file
vim path/file
Now the shortcuts:
shortcut | function | note |
---|---|---|
:h<enter> | help | a bit overwhelming |
:q<enter> | quit | immediate instinct after looking at help 🤣 |
:q!<enter> | quit ignoring changes | ! means, that you actually mean it and can be combined with a lot of commands |
:w<enter> | write / save file | |
:x<enter> | save and exit | |
:x!<enter> | force save and exit | |
11G | go to line 11 | |
$ | go to last char in line | |
dd | delete line | |
x | delete char | |
i | enter insert mode | that is where you can actually edit stuff - press escape to exit insert mode |
<esc> | exit insert mode | |
<ctrl>v | visual block | then use cursors to edit selection |
x | cut | |
p | paste |
ssh
allows you to remotely and securely log into computers - man ssh
should be available on any shell.
digital ocean has a decent intro into ssh https://www.digitalocean.com/community/tutorials/ssh-essentials-working-with-ssh-servers-clients-and-keys
There is a lot of other tutorials - your typical use cases will be:
- logging into other computers
- executing commands on those computers
- tunneling network connections
Once ssh is set up correctly scp
, git
and a lot of other programs, that rely on ssh under the covers are fun to use too.
git
github
Yes despite the fact, that m$ bought them, we use them and you have to enable 2fa
Some data formats
yaml
https://yaml.org/ some love it for good a reason, some hate it for another good reason, but atm there is just no way around it.
json
https://www.json.org/json-en.html similar love and hate situation like with yaml - also no way out.
CSV
If you think parsing or serializing CSV is trivial, you have been warned.
https://datatracker.ietf.org/doc/html/rfc4180
protocol buffers
Fast, compact not human readable - not necessary for most use cases
https://developers.google.com/protocol-buffers
xml
https://www.w3.org/TR/REC-xml/ only little love here