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
There is a surprising lack of documentation on how to do this. See:
Run:
#ifndef _MACARON_BASE64_H_ | |
#define _MACARON_BASE64_H_ | |
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2016-2024 tomykaira | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including |
$mod
refers to the modifier key (window/command or alt by default depending on config)
startx i3
start i3 from command line$mod+<Enter>
open a terminal$mod+d
open dmenu (text based program launcher)$mod+r
resize mode ( or to leave resize mode)$mod+shift+e
exit i3if (!doc.containsKey('myfield') || doc['myfield'].empty) { return "unavailable" } else { return doc['myfield'].value } |
#include <stdio.h> // printf, sprintf, fprintf | |
#include <stdlib.h> // malloc | |
int main() { | |
const unsigned char bytearr[] = { 0x12, 0x34, 0x56, 0x78 }; | |
const size_t arrlen = sizeof(bytearr); | |
const size_t hexlen = 2; // hex representation of byte with leading zero | |
const size_t outstrlen = arrlen * hexlen; | |
char * outstr = malloc(outstrlen + 1); |
See latest: https://medium.com/@zachcaceres/everything-you-need-to-know-about-body-language-5f081f1e04d3
The most honest part of the human body are the feet. Why?
Because we've practiced lying with our words and faces since pre-school.
In this summary, we'll cover the top signals and signs explained by FBI body language expert Joe Navarro in his best-seller What Every Body is Saying.
#!/usr/bin/python3 | |
import contfrac | |
import math | |
""" | |
Generously coded by me and my friend in the middle of a chill Sunday | |
Resources: | |
- https://crypto.stanford.edu/~dabo/pubs/papers/RSA-survey.pdf | |
- https://en.wikipedia.org/wiki/Wiener%27s_attack | |
- https://en.wikipedia.org/wiki/RSA_(cryptosystem) |
#!/usr/bin/python3 | |
import os, os.path | |
import sys | |
import time | |
from datetime import datetime | |
def help(): | |
print("Data reaper!") | |
print("Written by: @0xdeadbeer") | |
print(" - first_param: list containing file locations to backup") |