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
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
// Portable Wake-On-Lan by Lionello Lunesu, placed in the public domain | |
#ifdef _WIN32 | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <winsock2.h> | |
#ifdef _MSC_VER | |
#pragma comment(lib, "ws2_32.lib") | |
#endif | |
#else | |
#include <sys/socket.h> |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
.message-content {font-size: 120%} | |
.message-content {color: black;} | |
.message-content {font-family: "Segoe UI", Georgia, Serif;} | |
.message-content {line-height: 1.5;} | |
.user-name {font: bold 16px/30px Georgia, serif;} |
/opt
)bin/
directory of the toolchain to $PATH
export PATH=$PATH:/opt/armv6-eabihf--glibc--bleeding-edge-2020.08-1
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
From 01ce72fb8086fb6984e4409739a821408045612e Mon Sep 17 00:00:00 2001 | |
From: Dudemanguy <[email protected]> | |
Date: Sat, 24 Feb 2024 15:07:31 -0600 | |
Subject: [PATCH] glocalfileinfo: add a dbus thumbnail generator | |
--- | |
gio/glocalfileinfo.c | 186 +++++++++++++++++++++++++++++++++++++++++-- | |
1 file changed, 179 insertions(+), 7 deletions(-) | |
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c |
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
polybar config | |
[module/date] | |
type = custom/script | |
exec = ~/scripts/popup-calendar.sh | |
interval = 5 | |
click-left = ~/scripts/popup-calendar.sh --popup | |
format-background = ${colors.alt-background} | |
format-foreground = ${colors.alt-foreground} | |
label = %output:25% |