Skip to content

Instantly share code, notes, and snippets.

View poespas's full-sized avatar
😁
Hi

Jonathan poespas

😁
Hi
View GitHub Profile
@poespas
poespas / transform-an-physical-disk-into-a-vm.md
Created February 15, 2025 22:33
Transform an physical disk into a VM

Boot with a LiveUSB

Run command on the LiveUSB environment:

$ sudo dd if=/dev/nvme0n1 bs=256M status=progress | pigz-c-p 4 | ssh [user]@[host] "gunzip -c > /mnt/disks/dev-nvme0n1.img"

Convert disk to qcow2 format

$ qemu-img convert -f raw -O qcow2 /mnt/disks/dev-nvme0n1.img /mnt/disks/dev-nvme0n1.qcow2
@poespas
poespas / close_bitbucket_prompt.user.js
Created February 25, 2021 08:23
Closes bitbucket "Take your first steps" prompts after pageload
// ==UserScript==
// @name Bitbucket First Steps admisser
// @namespace https://poespas.me/
// @version 0.1
// @description Really annoying stuff bitbucket, not cool.
// @author You
// @match https://bitbucket.org/*
// @grant none
// ==/UserScript==