Skip to content

Instantly share code, notes, and snippets.

View cyqsimon's full-sized avatar
💭
👨‍🚀

cyqsimon

💭
👨‍🚀
  • Geosynchronous Orbit
View GitHub Profile
@joseluisq
joseluisq / resize_disk_image.md
Last active April 11, 2026 20:04
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

@wonderbeyond
wonderbeyond / set-apt-proxy.md
Last active April 1, 2026 08:01
[ubuntu][socks5][proxy] Set proxy for apt

Writing an apt proxy conf file /etc/apt/apt.conf.d/proxy.conf as below.

Acquire::http::Proxy "socks5h://127.0.0.1:1080";
Acquire::https::Proxy "socks5h://127.0.0.1:1080";
Acquire::socks::Proxy "socks5h://127.0.0.1:1080";

And the proxy settings will be applied the next time we run apt.