Skip to content

Instantly share code, notes, and snippets.

@shamil
shamil / mount_qcow2.md
Last active November 19, 2024 14:46
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
@phrawzty
phrawzty / 2serv.py
Last active November 10, 2024 16:32
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@turtleDev
turtleDev / pack.lua
Last active August 6, 2024 16:20
pack.lua | The Lua module bundler
#!/usr/bin/env lua
--[[
The MIT License
Copyright (C) 2017 Saravjeet 'Aman' Singh
<[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal