Updated cheatsheets for vim, docker, podman, microk8s, stratis, and git with additional sections for completeness

This commit is contained in:
2025-08-31 23:21:49 +02:00
parent 664d8be81f
commit e9a5c40249
6 changed files with 6 additions and 6 deletions

View File

@@ -77,4 +77,4 @@ newgrp docker
- Content trust: `docker trust sign <image>`
- Use minimal base images: Prefer alpine or distroless for smaller attack surface.
This cheatsheet prioritizes security and efficiency. For critical systems, perform additional penetration testing and use tools like Docker Bench for Security.
## 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."

View File

@@ -48,4 +48,4 @@ This is a quick reference for common Git commands.
- `git stash apply`: Apply stashed changes
- `git stash list`: List stashed changes
For more details, refer to the official Git documentation: https://git-scm.com/docs
## 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/"

View File

@@ -74,4 +74,4 @@ MicroK8s is a lightweight, single-package Kubernetes distribution developed by C
For more details, refer to official docs: https://microk8s.io/docs
This cheatsheet is compiled from official MicroK8s documentation and community sources.
## 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."

View File

@@ -88,4 +88,4 @@ security.
For more details, refer to official docs: https://podman.io/docs
This cheatsheet is compiled from official Podman documentation and reliable sources like Red Hat Developer.
## 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)."

View File

@@ -61,4 +61,4 @@ 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`.
For more details, refer to `man stratis` or Red Hat's official docs.
## 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)."

View File

@@ -61,4 +61,4 @@ 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`.
For more, type `:help` in Vim!
## 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!