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
#NoTrayIcon | |
#SingleInstance Force | |
; | |
; This scripts toggles between states raised and hidden of a Windows Terminal, | |
; or opens a new one if not opened, using `Super + T` or `Super + Enter` | |
; | |
; Supports multiple workspaces or virtual desktops. | |
; |
Небольшая помощь в Smali | |
(Будет дополняться) | |
# | |
Общая информация | |
# | |
Smali | |
Виды(Types) | |
Байт-код Dalvik имеет два основных класса типов, примитивные типы и ссылочные типы. Типы ссылок - это объекты и массивы, все остальное является примитивным. |
<# | |
.Synopsis | |
Sends Telegram text message via Bot API | |
.DESCRIPTION | |
Uses Telegram Bot API to send text message to specified Telegram chat. Several options can be specified to adjust message parameters. | |
.EXAMPLE | |
$bot = "#########:xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
$chat = "-#########" | |
Send-TelegramTextMessage -BotToken $bot -ChatID $chat -Message "Hello" | |
.EXAMPLE |
alias youtube-dl-playlist="youtube-dl --ignore-errors --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'" |
function Get-MachineSID | |
{ | |
param( | |
[switch] | |
$DomainSID | |
) | |
# Retrieve the Win32_ComputerSystem class and determine if machine is a Domain Controller | |
$WmiComputerSystem = Get-WmiObject -Class Win32_ComputerSystem | |
$IsDomainController = $WmiComputerSystem.DomainRole -ge 4 |
#!/usr/bin/php | |
<?php | |
/* Transmission to Deluge export script | |
* | |
* Transmission - transmission-gtk 2.77 (14031) | |
* Deluge - deluge: 1.3.6 | |
* Script - PHP 5.4.14 (cli) | |
* | |
* How to use this script; | |
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors. |