Skip to content

Instantly share code, notes, and snippets.

View nosmall's full-sized avatar

Jirka aka NOsmall or NoSmallCZ nosmall

View GitHub Profile
@nosmall
nosmall / AVMA - Hyper-V: Automatic Virtual Machine Activation..md
Last active October 23, 2021 19:58
AVMA - Hyper-V: Automatic Virtual Machine Activation

AVMA - Hyper-V: Automatic Virtual Machine Activation

https://wmatthyssen.com/2019/09/18/hyper-v-automatic-virtual-machine-activation/

PowerShell Direct from the Hyper-V host to activated a specific AVMA key for a VM running on that host. Open a PowerShell window (as Administrator) on the Hyper-V host and run following command:

Invoke-Command -VMName "vm-tmpl-W2k19" -ScriptBlock {slmgr /ipk TNK62-RXVTB-4P47B-2D623-4GF74}
@nosmall
nosmall / iperf3_speedtest_cron.bat
Created March 24, 2021 09:33
iperf3 Speedtest Cron with Mail - BATCH for windows
@echo off
:LOOP
cls
set hr=%time:~0,2%
if "%hr:~0,1%" equ " " set hr=0%hr:~1,1%
REM SET LOGFILE=%date:~-4,4%_%date:~-7,2%_%date:~-10,2%__%hr%_%time:~3,2%_%time:~6,2%.log
SET LOGFILE=%date:~-4,4%_%date:~-7,2%_%date:~-10,2%__%hr%_%time:~3,2%.log
echo.
@nosmall
nosmall / Convert Files To UTF-8 Encoding (Bulk).md
Created July 8, 2020 20:21
Convert Files To UTF-8 Encoding (Bulk)
@nosmall
nosmall / Enable Remote Desktop via Group Policy - Active Directory.md
Last active October 19, 2021 14:20
Enable Remote Desktop via Group Policy - Active Directory
Computer Configuration
  > Administrative Templates
    > Network
      > Network Connections
        > Windows Firewall
          > Domain Profile
            > Windows Firewall: Allow Remote Desktop Exception
@nosmall
nosmall / Compacting aka Compressing Hyper-V VHDX Files of Ubuntu Linux VMs.md
Last active May 3, 2022 12:42
Compacting Hyper-V VHDX Files of Ubuntu Linux VMs
@nosmall
nosmall / qBittorrent with Web UI on Ubuntu 20.04 (lazy guide).md
Last active February 28, 2025 00:32
qBittorrent with Web UI on Ubuntu 20.04 (lazy guide)

qBittorrent with Web UI on Ubuntu 20.04 (lazy guide)

WARNING: this guide is not about security, but about functionality, for example, never run applications as root. Be cautious.

sudo su
add-apt-repository ppa:qbittorrent-team/qbittorrent-stable && \
apt install -y qbittorrent qbittorrent-nox
@nosmall
nosmall / Deluge with Deluge-Web on Ubuntu 20.04 (lazy guide).md
Created June 11, 2020 11:45
Deluge with Deluge-Web on Ubuntu 20.04 (lazy guide)

Deluge with Deluge-Web on Ubuntu 20.04 (lazy guide)

sudo su
locale-gen en_US.UTF-8 && \
update-locale && \
localectl set-locale LANG=en_US.UTF-8 && \
add-apt-repository ppa:deluge-team/stable && \

openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, CentOS and Fedora.

This script will let you set up your own VPN server in no more than a minute, even if you haven't used OpenVPN before. It has been designed to be as unobtrusive and universal as possible.

Installation

Run the script and follow the assistant:

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

@nosmall
nosmall / imapsync.md
Last active July 15, 2024 07:43
Imapsync on Ubuntu 20.04 (lazy guide)

Imapsync on Ubuntu 20.04 (lazy guide)

sudo apt install -y libauthen-ntlm-perl libclass-load-perl libcrypt-ssleay-perl libdata-uniqid-perl libdigest-hmac-perl libdist-checkconflicts-perl libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmail-imapclient-perl libmodule-scandeps-perl libnet-dbus-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-fatal-perl libtest-mock-guard-perl libtest-mockobject-perl libtest-pod-perl libtest-requires-perl libtest-simple-perl libunicode-string-perl liburi-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus && \
cd ~/ && \
git clone https://github.com/imapsync/imapsync.git && \
cd ~/imapsync/ && \
sudo ln -s ~/imapsync/imapsync /usr/bin/imapsync && \
imapsync --testslive
@nosmall
nosmall / Install PLEX Media Server on Ubutnu 20.04.md
Last active June 9, 2020 15:32
Install PLEX Media Server on Ubutnu 20.04

Install (PMS) PLEX Media Server on Ubutnu 20.04

Update OS

minimal

sudo apt update -y
sudo apt upgrade -y 
sudo apt install -y apt-transport-https
sudo apt install -y curl