fix grok's stupid newline bug

This commit is contained in:
2025-08-31 23:24:28 +02:00
parent e9a5c40249
commit 53e5254c3c
6 changed files with 54 additions and 6 deletions

View File

@@ -77,4 +77,13 @@ newgrp docker
- Content trust: `docker trust sign <image>`
- Use minimal base images: Prefer alpine or distroless for smaller attack surface.
## Docker Swarm\n- Initialize swarm: `docker swarm init`\n- Join worker: `docker swarm join --token <token> <manager-ip>:2377`\n- List nodes: `docker node ls`\n- Deploy stack: `docker stack deploy -c docker-compose.yml <stack>`\n- Leave swarm: `docker swarm leave --force`\n\nThis cheatsheet prioritizes security and efficiency. For critical systems, perform additional penetration testing and use tools like Docker Bench for Security.\n\nSources: Based on https://www.docker.com/blog/docker-cheat-sheet/ and official docs."
## Docker Swarm
- Initialize swarm: `docker swarm init`
- Join worker: `docker swarm join --token <token> <manager-ip>:2377`
- List nodes: `docker node ls`
- Deploy stack: `docker stack deploy -c docker-compose.yml <stack>`
- Leave swarm: `docker swarm leave --force`
This cheatsheet prioritizes security and efficiency. For critical systems, perform additional penetration testing and use tools like Docker Bench for Security.
Sources: Based on https://www.docker.com/blog/docker-cheat-sheet/ and official docs."

View File

@@ -48,4 +48,14 @@ This is a quick reference for common Git commands.
- `git stash apply`: Apply stashed changes
- `git stash list`: List stashed changes
## Advanced Commands\n- `git rebase <branch>`: Rebase current branch onto another\n- `git cherry-pick <commit>`: Apply a commit from another branch\n- `git reflog`: Show reference log\n- `git bisect`: Binary search for bug introduction\n\n## Submodules\n- `git submodule add <repo> <path>`: Add submodule\n- `git submodule update --init`: Initialize submodules\n\nFor more details, refer to the official Git documentation: https://git-scm.com/docs and https://www.geeksforgeeks.org/git-cheat-sheet/"
## Advanced Commands
- `git rebase <branch>`: Rebase current branch onto another
- `git cherry-pick <commit>`: Apply a commit from another branch
- `git reflog`: Show reference log
- `git bisect`: Binary search for bug introduction
## Submodules
- `git submodule add <repo> <path>`: Add submodule
- `git submodule update --init`: Initialize submodules
For more details, refer to the official Git documentation: https://git-scm.com/docs and https://www.geeksforgeeks.org/git-cheat-sheet/"

View File

@@ -74,4 +74,9 @@ MicroK8s is a lightweight, single-package Kubernetes distribution developed by C
For more details, refer to official docs: https://microk8s.io/docs
## Additional Add-ons\n- GPU: `microk8s enable gpu`\n- MetalLB: `microk8s enable metallb:<ip-range>`\n- Cert-Manager: `microk8s enable cert-manager`\n\nThis cheatsheet is compiled from official MicroK8s documentation (https://microk8s.io/docs/commands) and community sources."
## Additional Add-ons
- GPU: `microk8s enable gpu`
- MetalLB: `microk8s enable metallb:<ip-range>`
- Cert-Manager: `microk8s enable cert-manager`
This cheatsheet is compiled from official MicroK8s documentation (https://microk8s.io/docs/commands) and community sources."

View File

@@ -88,4 +88,9 @@ security.
For more details, refer to official docs: https://podman.io/docs
## Podman Compose (requires podman-compose installed)\n- Install: `pip install podman-compose`\n- Up: `podman-compose up -d`\n- Down: `podman-compose down`\n\nThis cheatsheet is compiled from official Podman documentation and reliable sources like Red Hat Developer (https://developers.redhat.com/cheat-sheets/podman-cheat-sheet)."
## Podman Compose (requires podman-compose installed)
- Install: `pip install podman-compose`
- Up: `podman-compose up -d`
- Down: `podman-compose down`
This cheatsheet is compiled from official Podman documentation and reliable sources like Red Hat Developer (https://developers.redhat.com/cheat-sheets/podman-cheat-sheet)."

View File

@@ -61,4 +61,9 @@ Stratis supports encrypted pools (available in RHEL 9+ and confirmed for 10).
- Resources: Red Hat Documentation (Chapter on Stratis in Managing File Systems), stratis-storage.github.io.
- Common error: If pool not found, run `stratis daemon rediscover`.
## Troubleshooting\n- Service issues: `journalctl -u stratisd`\n- Rediscover devices: `sudo stratis daemon rediscover`\n- Encryption unlock: `sudo stratis pool unlock`\n\nFor more details, refer to `man stratis` or Red Hat's official docs (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_file_systems/setting-up-stratis-file-systems_managing-file-systems)."
## Troubleshooting
- Service issues: `journalctl -u stratisd`
- Rediscover devices: `sudo stratis daemon rediscover`
- Encryption unlock: `sudo stratis pool unlock`
For more details, refer to `man stratis` or Red Hat's official docs (https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_file_systems/setting-up-stratis-file-systems_managing-file-systems)."

View File

@@ -61,4 +61,18 @@ This is a quick reference guide for common Vim commands. Vim has several modes:
- Record macros: `q{letter}` to start, `q` to stop, `@{letter}` to replay.
- Vim is highly customizable via `.vimrc`.
## Advanced Commands\n- `:e filename`: Open a file\n- `:bd`: Close current buffer\n- `:sp` / `:vsp`: Split horizontal / vertical\n- `Ctrl + ]` : Jump to tag (with ctags)\n- `q:` : Open command history\n- `:%s/old/new/gc` : Replace with confirmation\n\n## Plugins and Extensions\n- Popular plugins: NERDTree for file exploration, vim-fugitive for Git integration.\n- Install with Vim-plug or Pathogen.\n\nSources: Based on https://devhints.io/vim and other web resources.\n\nFor more, type `:help` in Vim!
## Advanced Commands
- `:e filename`: Open a file
- `:bd`: Close current buffer
- `:sp` / `:vsp`: Split horizontal / vertical
- `Ctrl + ]` : Jump to tag (with ctags)
- `q:` : Open command history
- `:%s/old/new/gc` : Replace with confirmation
## Plugins and Extensions
- Popular plugins: NERDTree for file exploration, vim-fugitive for Git integration.
- Install with Vim-plug or Pathogen.
Sources: Based on https://devhints.io/vim and other web resources.
For more, type `:help` in Vim!