Skip to content

Instantly share code, notes, and snippets.

View sgzerolc's full-sized avatar
🌱
growing

Sam Li sgzerolc

🌱
growing
  • Germany
  • 01:40 (UTC +02:00)
View GitHub Profile
Please go to https://github.com/nishuzumi/gemini-teacher
@joseluisq
joseluisq / resize_disk_image.md
Last active April 16, 2025 13:33
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 February 18, 2025 22:56
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 April 24, 2025 17:38
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