Skip to content

Instantly share code, notes, and snippets.

View sgzerolc's full-sized avatar
🌱
growing

Sam Li sgzerolc

🌱
growing
  • Germany
  • 17:27 (UTC +01:00)
View GitHub Profile
Please go to https://github.com/nishuzumi/gemini-teacher
@joseluisq
joseluisq / resize_disk_image.md
Last active January 10, 2025 09:25
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2

@rgl
rgl / qemu-qmp.md
Last active June 21, 2024 17:45
qemu qmp

QEMU Machine Protocol (QMP) socket

Start QEMU with QMP UNIX socket and connect:

qemu-system-x86_64 -qmp unix:test.socket,server,nowait ...
nc -U test.socket
qmp-shell test.socket    # use the raw qmp interface. see https://github.com/0xef53/qmp-shell
qmp-shell -H test.socket # use the human interface.   see https://github.com/0xef53/qmp-shell
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active January 17, 2025 02:36
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example