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
Function Play-Mario { | |
[System.Console]::Beep(659, 125); | |
[System.Console]::Beep(659, 125); | |
[System.Threading.Thread]::Sleep(125); | |
[System.Console]::Beep(659, 125); | |
[System.Threading.Thread]::Sleep(167); | |
[System.Console]::Beep(523, 125); | |
[System.Console]::Beep(659, 125); | |
[System.Threading.Thread]::Sleep(125); | |
[System.Console]::Beep(784, 125); |
[root@plex ~]# cat /etc/systemd/system/minecraft@.service | |
[Unit] | |
Description=Minecraft Server %i | |
[Service] | |
WorkingDirectory=/opt/minecraft-%i | |
User=mcserver | |
ExecStart=/usr/bin/screen -DmS mc-%i /bin/java -Xmx2048M -jar minecraft_server.jar nogui |
--- | |
- hosts: inyoka_dev | |
tasks: | |
- name: enable network | |
service: | |
name: "{{ item }}" | |
state: started | |
enabled: yes | |
with_items: |
DB
ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
{% assign relBase = '' %} | |
{% assign tempDepth = page.url | append: 'hackish-solution' | split: '/' | size | minus: 2 %} | |
{% for i in (1..tempDepth) %} | |
{% assign relBase = relBase | append: "../" %} | |
{% endfor %} | |
{% if relBase == '' %} | |
{% assign relBase = './' %} | |
{% endif %} |
#!/usr/bin/env python3.6 | |
import os | |
import sys | |
from hashlib import md5 | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description='Compare an S3 etag to a local file') | |
parser.add_argument('inputfile', help='The local file') | |
parser.add_argument('etag', help='The etag from s3') | |
args = parser.parse_args() |
#Requires -Module PSDetour | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$LogPath | |
) | |
$LogPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($LogPath) |