Skip to content

Instantly share code, notes, and snippets.

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

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

View GitHelp.md

Git Help

Deleting Tags

This must currently be done via a command prompt:

git tag -d [tag]
git push origin :[tag]
View Edit With Gimp.md

To add a Windows context menu item "Edit With GIMP", download RegEditWithGimp.reg, edit the version number in the exe path to match your actual GIMP exe, and then double-click the reg file to install it into the registry.

@bp2008
bp2008 / Install_WindowsPhotoViewer.md
Last active Aug 31, 2021
Install Windows 7 Photo Viewer in Windows 10
View Install_WindowsPhotoViewer.md
View gist:e879f138173eada129291fbe94484216

Lambda Nu NetDAQ ND-100

Default IP: 192.168.1.99

To modify the configuration of a Lambda Nu NetDAQ ND-100, access the device at http://192.168.1.99/1234

IP and configuration information is from an Amazon.com review

screenshot of amazon review

View windows_tips.md

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

View unraid_tips.md

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

@bp2008
bp2008 / HyperVServer2019_GUI_Installation.md
Last active Jun 5, 2022
How to install a graphical desktop environment on Hyper-V Server 2019
View HyperVServer2019_GUI_Installation.md

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 / winserver2019core.md
Created Sep 8, 2019
Windows Server 2019 Core (Hyper-V Server)
View winserver2019core.md

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 / linux_cheat_sheet.md
Last active Nov 2, 2021
Ubuntu Linux / Raspberry Pi Cheat Sheet
View linux_cheat_sheet.md

Linux Cheat Sheet

nginx

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

Start

nginx