Skip to content

Instantly share code, notes, and snippets.

View seanw122's full-sized avatar

Sean Whitesell seanw122

View GitHub Profile
@seanw122
seanw122 / ShowingCodeFontSettings.vssettings
Created October 3, 2023 18:55
Visual Studio settings for when showing code.
<UserSettings><ApplicationIdentity version="17.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"/></ToolsOptions><Category name="Environment_Group" RegisteredName="Environment_Group"><Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"><PropertyValue name="Version">2</PropertyValue><FontsAndColors Version="2.0"><Theme Id="{DE3DBBCD-F642-433C-8353-8F1DF4370ABA}"/><Categories><Category GUID="{FA937F7B-C0D2-46B8-9F10-A7A92642B384}" FontIsDefault="Yes"><Items><Item Name="Artboard Background" Foreground="0x02000000" Background="0x02000000" BoldFont="No"/></Items></Category><Category GUID="{B36B0228-DBAD-4DB0-B9C7-2AD3E572010F}" FontName="Segoe UI" FontSize="9" CharSet="1" FontIsDefault="No"><Items><Item Name="Odd Row Items" Foreground="0x00000000" Background="0x00FFFFFF" BoldFont="Yes"/><Item Name=
Change password on WSL
Close Ubuntu if running
From CMD prompt
ubuntu config --default-user root
Note, if you get response that command not found, try more specific version:
sudo DEBIAN_FRONTEND=noninteractive apt-get -y update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
@seanw122
seanw122 / aspnetcore3.1_ubuntu_install.sh
Last active March 16, 2020 22:28
Install ASP.NET Core 3.1 on Ubuntu 18.04
sudo wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
sudo dpkg -i packages-microsoft-prod.deb && \
sudo DEBIAN_FRONTEND=noninteractive apt-get -y update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install apt-transport-https && \
sudo DEBIAN_FRONTEND=noninteractive apt-get -y update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y aspnetcore-runtime-3.1
@seanw122
seanw122 / AKS Setup Script
Last active February 27, 2023 22:21
This script will setup a new Azure Resource Group and Azure Kubernetes Service cluster environment also with an Azure Container Registry resource.
## This creates a working single node Azure Kubernetes Cluster
## and with an Azure Container Registry. Note, the ACR is in
## the same resource group as the AKS for demo purposes. For
## dev, qa, and prod you should have ACR in separate resource group.
echo "Beginning AKS Setup for Demo"
date
AKS_RESOURCE_GROUP=aks-rg1
AKS_CLUSTER_NAME=aks-c1