This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ------------------------------------------------------------------- | |
| # sync.sh: Simula un rsync unidireccional usando SCP en Git Bash (Windows) | |
| # ------------------------------------------------------------------- | |
| # Uso: | |
| # ./sync.sh <directorio_local> <usuario@host:directorio_remoto> | |
| # | |
| # <directorio_local> Carpeta fuente en Windows (Git Bash) |
| <citation_instructions>If the assistant's response is based on content returned by the web_search, drive_search, google_drive_search, or google_drive_fetch tool, the assistant must always appropriately cite its response. Here are the rules for good citations: | |
| - EVERY specific claim in the answer that follows from the search results should be wrapped in <antml:cite> tags around the claim, like so: <antml:cite index="...">...</antml:cite>. | |
| - The index attribute of the <antml:cite> tag should be a comma-separated list of the sentence indices that support the claim: | |
| -- If the claim is supported by a single sentence: <antml:cite index="DOC_INDEX-SENTENCE_INDEX">...</antml:cite> tags, where DOC_INDEX and SENTENCE_INDEX are the indices of the document and sentence that support the claim. | |
| -- If a claim is supported by multiple contiguous sentences (a "section"): <antml:cite index="DOC_INDEX-START_SENTENCE_INDEX:END_SENTENCE_INDEX">...</antml:cite> tags, where DOC_INDEX is the corresponding document index and START_S |
| for a in $(git branch -a --merged|grep "remotes/origin/feature/"); do git push -u origin :${a:15}; done |
| Objetivo: convertir fichero markdown a PDF que incluya flujos como código de MermaidJS usando pandoc | |
| MAC: | |
| 1. Instalar pandoc y basictex "brew install pandoc basictex" | |
| 2. Instalar filtro de mermaid "npm install --global mermaid-filter" | |
| 3. Traducir documento "pandoc -F mermaid-filter -o sf_DoR_Jira.pdf wf_DoR_Jira.md" | |
| Linux: | |
| TBD |
| #! /bin/bash | |
| mkdir ~/start-scripts | |
| cat <<EOF >> ~/start-scripts/change-mtu.sh | |
| #! /bin/bash | |
| ip link set dev eth0 mtu 1350 | |
| EOF | |
| chmod +x ~/start-scripts/change-mtu.sh | |
| echo "sudo ~/start-scripts/change-mtu.sh" >> ~/.bashrc | |
| sudo -i | |
| echo "$USER ALL=NOPASSWD: $HOME/start-scripts/change-mtu.sh" | EDITOR='tee -a' sudo -n -e /etc/sudoers.d/mtu |
| ##################################################### | |
| # Running AWS Services In A Laptop Using LocalStack # | |
| # https://youtu.be/8hi9P1ffaQk # | |
| ##################################################### | |
| # Referenced videos: | |
| # - Terraform vs. Pulumi vs. Crossplane - Infrastructure as Code (IaC) Tools Comparison: https://youtu.be/RaoKcJGchKM | |
| # - Should We Replace Docker Desktop With Rancher Desktop?: https://youtu.be/bYVfCp9dRTE | |
| ######### |
| --- | |
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: traefik-ingress-controller | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - services |
| #!/usr/bin/env bash | |
| # usage: ./check-all-ciphers.sh server:port | |
| # Credits to https://superuser.com/a/224263 | |
| # Disable all proxy env vars | |
| unset $(export|grep proxy -i|cut -f 3 -d " "|cut -f 1 -d "=") | |
| # OpenSSL requires the port number. |