diff --git a/docker-cheatsheet.md b/docker-cheatsheet.md index 2e2c6c3..c6feb7e 100644 --- a/docker-cheatsheet.md +++ b/docker-cheatsheet.md @@ -77,4 +77,4 @@ newgrp docker - Content trust: `docker trust sign ` - 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. \ No newline at end of file +## Docker Swarm\n- Initialize swarm: `docker swarm init`\n- Join worker: `docker swarm join --token :2377`\n- List nodes: `docker node ls`\n- Deploy stack: `docker stack deploy -c docker-compose.yml `\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." \ No newline at end of file diff --git a/git-cheatsheet.md b/git-cheatsheet.md index ff54690..5573d6d 100644 --- a/git-cheatsheet.md +++ b/git-cheatsheet.md @@ -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 \ No newline at end of file +## Advanced Commands\n- `git rebase `: Rebase current branch onto another\n- `git cherry-pick `: 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 `: 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/" \ No newline at end of file diff --git a/microk8s-cheatsheet.md b/microk8s-cheatsheet.md index fb032ff..4d8ddd5 100644 --- a/microk8s-cheatsheet.md +++ b/microk8s-cheatsheet.md @@ -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. \ No newline at end of file +## Additional Add-ons\n- GPU: `microk8s enable gpu`\n- MetalLB: `microk8s enable metallb:`\n- Cert-Manager: `microk8s enable cert-manager`\n\nThis cheatsheet is compiled from official MicroK8s documentation (https://microk8s.io/docs/commands) and community sources." \ No newline at end of file diff --git a/podman-cheatsheet.md b/podman-cheatsheet.md index 2249d0a..425f623 100644 --- a/podman-cheatsheet.md +++ b/podman-cheatsheet.md @@ -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. \ No newline at end of file +## 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)." \ No newline at end of file diff --git a/stratis_cheatsheet.md b/stratis_cheatsheet.md index ec49236..723821e 100644 --- a/stratis_cheatsheet.md +++ b/stratis_cheatsheet.md @@ -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. \ No newline at end of file +## 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)." \ No newline at end of file diff --git a/vim_cheatsheet.md b/vim_cheatsheet.md index 9e39d49..7ac422c 100644 --- a/vim_cheatsheet.md +++ b/vim_cheatsheet.md @@ -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! \ No newline at end of file +## 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! \ No newline at end of file