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
#include <iostream> | |
#include <fstream> | |
#include <memory> | |
#include <string> | |
#include <algorithm> | |
void process_crypt_table(unsigned *crypt_table) | |
{ | |
for (auto i = 0; i < 227; i++) | |
{ |
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
Name of actual identifier | Displayed error | Error exit code | Suggested troubleshooting steps |
---|---|---|---|
CL_OUT_OF_RESOURCES | error: out of resources | -5 | Run bfCL in reduced work size mode (in the future, with an updated script) |
CL_PLATFORM_NOT_FOUND_KHR | error: platform not found | -1001 | This error means that no ICD's for any compute device were found. If applicable, disable Nvidia SLI / AMD Crossfire and reboot your computer. If the error persists and you have Windows, update your graphics card drivers since you most likely don't have your graphics card's OpenCL ICD; otherwise if you have Linux, make sure you download a compatible OpenCL ICD for your graphics card through your package manager (OpenCL ICD Loader by itself is not enough!). If the error still persists regardless of your operating system, you most likely don't have have an OpenCL 1.2 compatible graphics card. |
N/A | no OpenCL capable GPU found | -1 (Warning: this ex |
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
sudo systemctl enable libvirtd.service
https://www.microsoft.com/nb-no/software-download/windows10ISO
// ==UserScript== | |
// @name Sway Popup Window Detector | |
// @namespace https://maddison.io/ | |
// @version 0.1 | |
// @description Detect "pop-up" windows because for some reason Wayland doesn't have a built-in way to do it??! | |
// @author Maddison Hellstrom <github.com/b0o> | |
// @include /^.*$/ | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |