Skip to content

Instantly share code, notes, and snippets.

View ILMostro's full-sized avatar
🎯
Focusing

Amel Hodzic ILMostro

🎯
Focusing
View GitHub Profile
@ILMostro
ILMostro / collect-sysinfo.py
Created April 12, 2022 13:38 — forked from emrekgn/collect-sysinfo.py
Collect system information (BIOS, CPU, GPU, installed packages, motherboard and more) in a cross-platform manner!
#!/usr/bin/env python
"""
Print (and write to JSON file) system information in a cross-platform manner.
Output contains information about platform, BIOS, CPU, memory, disk, GPU, network, peripheral devices, installed
packages, motherboard and users.
This script heavily relies on psutil and some other bash/powershell commands. See requirements.txt for dependency list.
@ILMostro
ILMostro / mount_qcow2.md
Created April 16, 2022 21:36 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

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