diff --git a/docs/homelab/snippets.md b/docs/homelab/snippets.md new file mode 100644 index 0000000..d260a92 --- /dev/null +++ b/docs/homelab/snippets.md @@ -0,0 +1,14 @@ +# Snippets +## Traefik +```yaml + labels: + - traefik.enable=true + - traefik.http.routers.service.entrypoints=websecure + - traefik.http.routers.service.rule=HOST(`service.local.xeovalyte.dev`) + - traefik.http.services.service.loadbalancer.server.port=80 + +networks: + default: + external: true + name: proxy +``` diff --git a/docs/linux/commands.md b/docs/linux/commands.md new file mode 100644 index 0000000..0fb5f3b --- /dev/null +++ b/docs/linux/commands.md @@ -0,0 +1,16 @@ +# Commands +## NixOS +Update system +```bash +sudo nixos-rebuild switch --flake ~/system/#xv-desktop +``` + +Update home manager +```bash +home-manager --flake ~/system/#xeovalyte@xv-desktop switch +``` + +Refresh input URL's +```bash +nix flake update +``` diff --git a/docs/linux/shortcuts.md b/docs/linux/shortcuts.md new file mode 100644 index 0000000..22abba7 --- /dev/null +++ b/docs/linux/shortcuts.md @@ -0,0 +1,43 @@ +# Keyboard Shortcuts + +## Neovim + +**Basic** + +- ++ctrl+h++/++j++/++k++/++l++ : move to left / down / up / right window +- ++alt+up++/++down++/++left++/++right++ : increase / decrease -> height / width +- ++alt+h++/++j++/++k++/++l++ : move lines to left / down / up / right +- ++n++/++shift+n++ : next / previous search result +- ++ctrl+s++ : save file +- ++space+f+n++ : new file + +**Neotree** + +- ++space+e++ : toggle neotree +- ++period++ : change root to directory +- ++a++ : add file +- ++d++ : delete file +- ++r++ : rename file +- ++shift+h++ : toggle hidden +- ++shift+i++ : toggle gitignore + +**Telescope** + +- ++space+f+f++ : find files +- ++space+f+g++ : search files +- ++space+f+b++ : switch buffers + +**LSP** + +- ++g+l++ : show diagnostics +- ++g+d++ : go to definition +- ++g+d++ : go to declaration +- ++shift+k++ : preview + +**Spell** + +- ++z+equal++ : list suggestions +- ++z+g++ : mark word as good +- ++z+w++ : mark word as bad + +## Minecraft diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..08f4260 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,21 @@ +site_name: Notes from Timo Boomers +theme: + name: material + palette: + scheme: slate + primary: blue + accent: light blue + features: + - navigation.tabs + - content.code.copy + +markdown_extensions: + - def_list + - pymdownx.keys + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences