Skip to content

Instantly share code, notes, and snippets.

@agowa
agowa / mount_qcow2.md
Created July 13, 2023 16:22 — 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
@agowa
agowa / post-commit
Last active January 27, 2018 18:52 — forked from leucos/post-commit
Transparent encryption/decryption with pre-commit and post-commit hooks
#!/bin/sh
#
# Post-commit hook that decrypts files containing '.vault'
#
# File should be .git/hooks/post-commit and executable
CRYPT_TAG='^.*\.vault(([\.]?)|(\..*))$'
EXIT_STATUS=0
wipe="\033[1m\033[0m"
@agowa
agowa / mariadb_dev.yml
Last active October 13, 2017 00:57 — forked from ostcar/inyoka_dev.yml
ansible config for mysql and redis
---
- hosts: mariadb_dev
vars:
mysql_root_pw: ''
tasks:
- name: enable network
service:
name: '{{ item }}'