Skip to content

Instantly share code, notes, and snippets.

@bp2008
bp2008 / HyperVServer2019_GUI_Installation.md
Last active January 30, 2024 22:01
How to install a graphical desktop environment on Hyper-V Server 2019

Hyper-V Server 2019 GUI Installation Guide

Introduction

Hyper-V Server does not include much in the way of graphical tools, but third-party alternatives can be installed.

I found a disturbing lack of basic instructions for using Hyper-V Server 2019, so it is my hope that this guide is useful to somebody.

Before starting this guide, enable Remote Desktop support in Hyper-V Server using the built-in configuration menu. If you connect to the Hyper-V Server with Remote Desktop, it will make it easy to copy and paste text (and later, files) from a normal Windows desktop machine.

@bp2008
bp2008 / unraid_tips.md
Last active December 22, 2023 09:05
unRAID tips

Network

I prefer to bond multiple network interfaces for redundancy, however viewing and configuring the bond interface can be a bit tricky.

Bonding mode: active-backup

Multiple network links can be bonded using "active-backup" mode so that if one NIC goes down, another will take its place. This mode does not require a managed switch, however it has trouble prioritizing one interface over another. For example if you have a 1 Gbps NIC and a 10 Gbps NIC, unRAID is not smart enough to prefer the 10 Gbps NIC.

Viewing Network Interface Status

View overall bond status: cat /proc/net/bonding/bond0

Windows Tips

Sign-in automatically

The procedure to set up automatic sign-in is easy:

Run control userpasswords2 or netplwiz to open a special "User Accounts" dialog. Find the option "Users must enter a user name and password to use this computer". Uncheck this, then click OK and you will be prompted to enter credentials.

That checkbox might be missing

@bp2008
bp2008 / MarioRPG100Jumps.md
Last active December 2, 2023 19:59
A guide to complete the Super Mario RPG 100 Jump challenge on Nintento Switch, using a Raspberry pi and a servo to press the A button.

Super Mario RPG has a challenge to complete 100 consecutive jumps on a single enemy. The reward is a powerful piece of armor for Mario.

2023-11-30 10 53 03 (1200)

image

It is recommended to do this in Mushroom Way (the zone directly after Mario's Pad), where you can find Spikey enemies which take no damage from jumps, allowing you to try again and again without re-entering combat with other enemies. Plus, there is a mushroom in a chest in the area northwest of the spikeys so you can refill on flower power!

I couldn't get beyond 30 jumps doing it by hand, so I found another way.

@bp2008
bp2008 / linux_cheat_sheet.md
Last active August 23, 2023 22:46
Ubuntu Linux / Raspberry Pi Cheat Sheet

Linux Cheat Sheet

nginx

nginx is typically located at /usr/bin/nginx
nginx configuration is at /etc/nginx

Start

nginx

Moving Windows Recovery Partition

When cloning a Windows OS disk to a larger disk, it is common for the OS partition to be followed by a recovery partition. If your disk cloning software does not allow moving the recovery partition, or you forget to do it, it is possible to fix it from within Windows later.

It is possible to move a Windows Recovery Partition without third-party software and without shutting down, for the purpose of extending the OS partition before it.

This guide is based on a superuser.com answer:

answered Oct 21, 2020 at 19:04 - VainMan

Taskbar Dimmer Autohotkey Script

This Autohotkey script is intended to dim the taskbar when it is not needed in order to reduce the burn-in effect on OLED displays.

Source/Credit

This script originally came from: https://superuser.com/a/1691664

Original script from the link above:

@bp2008
bp2008 / winserver2019core.md
Created September 8, 2019 16:39
Windows Server 2019 Core (Hyper-V Server)

Following is a list of GUI-based programs, which are provided with Windows Server 2019 Core:

SOURCE: https://medium.com/@RealNetwork/windows-server-core-2019-gui-management-sysinternals-utilities-datacenter-standard-hyper-v-dashboard-265801412c89

Control.exe intl.cpl — sets up region information
Control.exe timedate.cpl — sets up date & time
Regedit — registry editor
Notepad — hmm.. what would that be?
Msinfo32.exe — displays comprehensive system information
Taskmgr.exe — can also be executed via ctrl-alt-del

@bp2008
bp2008 / windows_font_rendering.md
Created May 14, 2022 05:48
How to change Windows font rendering / cleartype / subpixel antialiasing for displays with BGR, WRGB, and other subpixel layouts.

Purpose

Most computer monitors use an "RGB" subpixel layout, so most computer software (including Windows itself) optimizes its text rendering to look good on this kind of display. However this kind of optimization starts to become undesirable in many situations, where it causes color fringing to appear around text.

Changing font rendering settings in Windows

Method 1: ClearType Tuner

Use the ClearType tuner: Windows > Settings > search: Cleartype

Git Help

Deleting Tags

This must currently be done via a command prompt:

git tag -d [tag]
git push origin :[tag]