Skip to content

Instantly share code, notes, and snippets.

View Erikvv's full-sized avatar
🗽

Erik van Velzen Erikvv

🗽
View GitHub Profile
@andrey-skl
andrey-skl / request.kt
Created June 21, 2018 21:45
KotlinJS Fetch with coroutines
package app
import kotlinx.coroutines.experimental.await
import org.w3c.fetch.*
import kotlin.browser.window
import kotlin.js.json
class FetchError(message: String, status: Number, response: dynamic) : Error(message)
suspend fun makeError(res: Response): FetchError {
@grizzm0
grizzm0 / Foo.php
Last active August 9, 2021 14:13
Best practice form/input-filter setup for ZF3
<?php
namespace Application\Entity;
/**
* Class Foo
*
* @package Application\Entity
*/
class Foo
{
@shamil
shamil / mount_qcow2.md
Last active April 24, 2025 04:34
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