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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <stdint.h> |
# The main tex file which \input's the section files | |
MAINTEX=TO BE FILLED BY OEM | |
# The section tex files | |
TEXFILES=TO BE FILLED BY OEM | |
OUTPUT=output/ | |
all: dirs html pdf | |
dirs: | |
mkdir -p ${OUTPUT} |
#!/bin/bash | |
# Convert youtube timestamps to CUE file | |
# polprog 2024 | |
# Released on 3 clause BSD License | |
# Use: ./yt2cue.sh [description.txt] > title.cue | |
filename=$1 | |
gawk ' | |
BEGIN { FS = "-"; trackid = 1; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <time.h> | |
/* Plant like 2d cellular automaton by polprog <gorplop@sdf.org> | |
03.02.2022 | |
Prototype program |
/** hexdump.h */ | |
/* | |
Hexdump functions | |
polprog 2021. Released on 3-clause BSD | |
*/ | |
#ifndef _HEXDUMP_H | |
#define _HEXDUMP_H |
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: Polprog Computer Heresy Systems | |
// Engineer: The Man Himself | |
// | |
// Create Date: 17:38:08 02/10/2020 | |
// Design Name: | |
// Module Name: test | |
// Project Name: | |
// Target Devices: |
/* PDFsearch - PDF indexing script | |
This script will search and generate a list of links for matching filenames inside a | |
given directory in the WWW root. Change the target directory inside the exec() call. | |
polrog, rue_mohr 2022 | |
*/ | |
<html> | |
<head> | |
<title>Datasheet Search Results</title> |
#include <stdio.h> | |
/******************** | |
* Enterprise array handler | |
* (c) 2018 Polprog | |
* | |
********************/ | |
//TODO: Rewrite in C++ as a class | |
void * getArrayElement(void * arr, char element, char elementSize){ |
This was created as a helper script for backing up my directory with VMs | |
It's not the prettiest one, but it's very simple and flexible. Works for me! | |
Be careful with the remove-old option, you may want to back up some of the older back ups to another place, | |
since it removers EVERY BACKUP OLDER than a week. | |
You definitely want the backup root to be a separate partition or, even better, separate disk. | |
It can be put into cron, if you do so I'd suggest a wrapper script like this: |