diff --git a/docs/ansible/_category_.json b/docs/ansible/_category_.json new file mode 100644 index 0000000..b60a2d2 --- /dev/null +++ b/docs/ansible/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Ansible", + "position": 6, + "link": { + "type": "generated-index", + "description": "Ansible commands docs blog" + } +} diff --git a/docs/ansible/commands.md b/docs/ansible/commands.md new file mode 100644 index 0000000..bed5641 --- /dev/null +++ b/docs/ansible/commands.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# commands + +Тут частые команды \ No newline at end of file diff --git a/docs/cloud/_category_.json b/docs/cloud/_category_.json new file mode 100644 index 0000000..5d8d8aa --- /dev/null +++ b/docs/cloud/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Cloud", + "position": 8, + "link": { + "type": "generated-index", + "description": "Cloud commands docs blog" + } +} diff --git a/docs/cloud/timeweb.md b/docs/cloud/timeweb.md new file mode 100644 index 0000000..e02c9ea --- /dev/null +++ b/docs/cloud/timeweb.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# TimeWeb + +Тут частые команды \ No newline at end of file diff --git a/docs/cloud/yandex.md b/docs/cloud/yandex.md new file mode 100644 index 0000000..a5203a5 --- /dev/null +++ b/docs/cloud/yandex.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 3 +--- + +# Yandex + +Тут частые команды \ No newline at end of file diff --git a/docs/docker/_category_.json b/docs/docker/_category_.json new file mode 100644 index 0000000..6576f81 --- /dev/null +++ b/docs/docker/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Docker", + "position": 4, + "link": { + "type": "generated-index", + "description": "Docker commands docs blog" + } +} diff --git a/docs/docker/commands.md b/docs/docker/commands.md new file mode 100644 index 0000000..49b1e17 --- /dev/null +++ b/docs/docker/commands.md @@ -0,0 +1,43 @@ +--- +sidebar_position: 2 +--- + +# commands + +Тут частые команды + +Docker run exec or have entry point use: --entry-point=/bin/bash +``` +docker run --rm -it image-name sh +``` + +Build args + + +``` +docker build . -t myimage --build-arg ARTIFACTORY_USER=$ARTIFACTORY_USER --build-arg ARTIFACTORY_PASSWORD=$ARTIFACTORY_PASSWORD +``` + + +Docker run rm exec + +``` +docker run --rm -it tg_webhook_exporter bash +``` + +Docker overlay who use (need install jq) + +``` + docker inspect $(docker ps -qa) | jq -r 'map([.Name, .GraphDriver.Data.MergedDir]) | .[] | "\(.[0])\t\(.[1])"' +``` + +Docker image size + +``` +docker ps --format '{{.Names}}\n{{.Image}}:{{.Size}}\n' -s +``` + +Docker cp +``` +docker cp :/file/path/within/container /host/path/target +``` diff --git a/docs/education/_category_.json b/docs/education/_category_.json new file mode 100644 index 0000000..5de94ca --- /dev/null +++ b/docs/education/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Учеба", + "position": 20, + "link": { + "type": "generated-index", + "description": "Учебные и образовательные материалы" + } +} diff --git a/docs/education/list.md b/docs/education/list.md new file mode 100644 index 0000000..15314d3 --- /dev/null +++ b/docs/education/list.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# Список + +Учебные и образовательные материалы diff --git a/docs/helm/_category_.json b/docs/helm/_category_.json new file mode 100644 index 0000000..f986489 --- /dev/null +++ b/docs/helm/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Helm", + "position": 5, + "link": { + "type": "generated-index", + "description": "Helm commands docs blog" + } +} diff --git a/docs/helm/rollback.md b/docs/helm/rollback.md new file mode 100644 index 0000000..2984310 --- /dev/null +++ b/docs/helm/rollback.md @@ -0,0 +1,20 @@ +--- +sidebar_position: 2 +--- + +# Rollback + +История версий (список) +``` +helm history podname -n default +``` + +Откат на выбранную ревизию + +``` +helm rollback -n +``` + +``` +helm rollback podname -n default +``` diff --git a/docs/intro.md b/docs/intro.md index 8a2e69d..58c6d51 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -2,46 +2,8 @@ sidebar_position: 1 --- -# Tutorial Intro +# Мои заметки -Let's discover **Docusaurus in less than 5 minutes**. +Здесь будут самые часто используемые команды и некоторые напоминалки по разным темам -## Getting Started - -Get started by **creating a new site**. - -Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. - -### What you'll need - -- [Node.js](https://nodejs.org/en/download/) version 16.14 or above: - - When installing Node.js, you are recommended to check all checkboxes related to dependencies. - -## Generate a new site - -Generate a new Docusaurus site using the **classic template**. - -The classic template will automatically be added to your project after you run the command: - -```bash -npm init docusaurus@latest my-website classic -``` - -You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. - -The command also installs all necessary dependencies you need to run Docusaurus. - -## Start your site - -Run the development server: - -```bash -cd my-website -npm run start -``` - -The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. - -The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. - -Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. +Как расширенные закладки в формате документации по категориям \ No newline at end of file diff --git a/docs/k8s/_category_.json b/docs/k8s/_category_.json new file mode 100644 index 0000000..438a54e --- /dev/null +++ b/docs/k8s/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Kubernetes", + "position": 3, + "link": { + "type": "generated-index", + "description": "Kubernetes commands docs blog" + } +} diff --git a/docs/k8s/commands.md b/docs/k8s/commands.md new file mode 100644 index 0000000..bed5641 --- /dev/null +++ b/docs/k8s/commands.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# commands + +Тут частые команды \ No newline at end of file diff --git a/docs/misc/Misc.md b/docs/misc/Misc.md new file mode 100644 index 0000000..e6dec7e --- /dev/null +++ b/docs/misc/Misc.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# Misc + +Всяко разное \ No newline at end of file diff --git a/docs/misc/_category_.json b/docs/misc/_category_.json new file mode 100644 index 0000000..1dfeb59 --- /dev/null +++ b/docs/misc/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Misc", + "position": 10, + "link": { + "type": "generated-index", + "description": "Misc" + } +} diff --git a/docs/proxmox/_category_.json b/docs/proxmox/_category_.json new file mode 100644 index 0000000..b69fde7 --- /dev/null +++ b/docs/proxmox/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Proxmox", + "position": 7, + "link": { + "type": "generated-index", + "description": "Proxmox commands docs blog" + } +} diff --git a/docs/proxmox/commands.md b/docs/proxmox/commands.md new file mode 100644 index 0000000..bed5641 --- /dev/null +++ b/docs/proxmox/commands.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# commands + +Тут частые команды \ No newline at end of file diff --git a/docs/python/FastAPI.md b/docs/python/FastAPI.md new file mode 100644 index 0000000..edae993 --- /dev/null +++ b/docs/python/FastAPI.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 2 +--- + +# Fast API + +Тут про Fast API \ No newline at end of file diff --git a/docs/python/_category_.json b/docs/python/_category_.json new file mode 100644 index 0000000..c2fffc1 --- /dev/null +++ b/docs/python/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Python", + "position": 2, + "link": { + "type": "generated-index", + "description": "Python docs" + } +} diff --git a/docs/soft/Linux.md b/docs/soft/Linux.md new file mode 100644 index 0000000..d8ee635 --- /dev/null +++ b/docs/soft/Linux.md @@ -0,0 +1,9 @@ +--- +sidebar_position: 2 +--- + +# Linux + +Основная работа в терминале без GUI + +- ctop (Удобный просмотр контейнеров) \ No newline at end of file diff --git a/docs/soft/Mac.md b/docs/soft/Mac.md new file mode 100644 index 0000000..e539461 --- /dev/null +++ b/docs/soft/Mac.md @@ -0,0 +1,7 @@ +--- +sidebar_position: 3 +--- + +# MacOS + +Список ПО \ No newline at end of file diff --git a/docs/soft/Windows.md b/docs/soft/Windows.md new file mode 100644 index 0000000..46c2679 --- /dev/null +++ b/docs/soft/Windows.md @@ -0,0 +1,11 @@ +--- +sidebar_position: 1 +--- + +# Windows + +Список ПО которые я использую + +- VSCode +- Obsidian +- MobaXterm Personal \ No newline at end of file diff --git a/docs/soft/_category_.json b/docs/soft/_category_.json new file mode 100644 index 0000000..44f1877 --- /dev/null +++ b/docs/soft/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Soft", + "position": 1, + "link": { + "type": "generated-index", + "description": "My Software" + } +} diff --git a/docs/tutorial-basics/_category_.json b/docs/tutorial-basics/_category_.json index 2e6db55..0b942f9 100644 --- a/docs/tutorial-basics/_category_.json +++ b/docs/tutorial-basics/_category_.json @@ -1,6 +1,6 @@ { "label": "Tutorial - Basics", - "position": 2, + "position": 100, "link": { "type": "generated-index", "description": "5 minutes to learn the most important Docusaurus concepts." diff --git a/docs/tutorial-extras/_category_.json b/docs/tutorial-extras/_category_.json index a8ffcc1..e80bac9 100644 --- a/docs/tutorial-extras/_category_.json +++ b/docs/tutorial-extras/_category_.json @@ -1,6 +1,6 @@ { "label": "Tutorial - Extras", - "position": 3, + "position": 101, "link": { "type": "generated-index" }