From 53e5254c3c410a5aaeaa094ec897b5b428c25d8b Mon Sep 17 00:00:00 2001 From: grok Date: Sun, 31 Aug 2025 23:24:28 +0200 Subject: [PATCH] fix grok's stupid newline bug --- docker-cheatsheet.md | 11 ++++++++++- git-cheatsheet.md | 12 +++++++++++- microk8s-cheatsheet.md | 7 ++++++- podman-cheatsheet.md | 7 ++++++- stratis_cheatsheet.md | 7 ++++++- vim_cheatsheet.md | 16 +++++++++++++++- 6 files changed, 54 insertions(+), 6 deletions(-) diff --git a/docker-cheatsheet.md b/docker-cheatsheet.md index c6feb7e..fb98b7c 100644 --- a/docker-cheatsheet.md +++ b/docker-cheatsheet.md @@ -77,4 +77,13 @@ newgrp docker - Content trust: `docker trust sign ` - 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 :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 +## Docker Swarm +- Initialize swarm: `docker swarm init` +- Join worker: `docker swarm join --token :2377` +- List nodes: `docker node ls` +- Deploy stack: `docker stack deploy -c docker-compose.yml ` +- 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." diff --git a/git-cheatsheet.md b/git-cheatsheet.md index 5573d6d..e78aaba 100644 --- a/git-cheatsheet.md +++ b/git-cheatsheet.md @@ -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 `: 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 +## Advanced Commands +- `git rebase `: Rebase current branch onto another +- `git cherry-pick `: Apply a commit from another branch +- `git reflog`: Show reference log +- `git bisect`: Binary search for bug introduction + +## Submodules +- `git submodule add `: 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/" diff --git a/microk8s-cheatsheet.md b/microk8s-cheatsheet.md index 4d8ddd5..53140d1 100644 --- a/microk8s-cheatsheet.md +++ b/microk8s-cheatsheet.md @@ -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:`\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 +## Additional Add-ons +- GPU: `microk8s enable gpu` +- MetalLB: `microk8s enable metallb:` +- Cert-Manager: `microk8s enable cert-manager` + +This cheatsheet is compiled from official MicroK8s documentation (https://microk8s.io/docs/commands) and community sources." diff --git a/podman-cheatsheet.md b/podman-cheatsheet.md index 425f623..bbdd92a 100644 --- a/podman-cheatsheet.md +++ b/podman-cheatsheet.md @@ -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)." \ No newline at end of file +## 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)." diff --git a/stratis_cheatsheet.md b/stratis_cheatsheet.md index 723821e..4637675 100644 --- a/stratis_cheatsheet.md +++ b/stratis_cheatsheet.md @@ -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)." \ No newline at end of file +## 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)." diff --git a/vim_cheatsheet.md b/vim_cheatsheet.md index 7ac422c..970c8c0 100644 --- a/vim_cheatsheet.md +++ b/vim_cheatsheet.md @@ -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! \ No newline at end of file +## 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!