- Enable WSL on Windows 10 through 'Programs and Features'.
- Install WSL Ubuntu from the Windows Store.
- Launch ubuntu.exe and do initial 'Properties/Defaults' config:
- Right click on the title bar, select Defaults:
- Under the Options tab, select
Use Ctrl+Shift+C/V as Copy/Paste
- You might want to increase Buffer Size for Command History under the Options tab, and Height under Layout > Screen Buffer Size: 9001 seems like enough 😄
- Under the Options tab, select
- Right click on the title bar, select Defaults:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.Caching; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace TestProj.Helpers | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script | |
# Author: Jeff Dalley | |
# Last Updated: 2017-10-10 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Semaphores | |
ScopeCreep | |
ProjectMuteX | |
AbstractAbomination | |
NullReference | |
Drop Table Clans | |
MicroMonoliths | |
MonolithMammoth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script gets the DNSNames of two defined Route53 domains (one is a subdomain of the other), | |
# and swaps the aliases to perform a blue/green deployment. Or for whatever other reason you can imagine. | |
# Note: If you were doing this for two different non-subdomain domains; you'd have two Hosted Zone Ids here: | |
$hostedZoneId = '<some-hosted-zone-id>' | |
$stagingDNSAlias = aws route53 list-resource-record-sets ` | |
--hosted-zone-id $hostedZoneId ` | |
--query "ResourceRecordSets[?Name == 'staging.yoursite.com.'].AliasTarget.DNSName" ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Location D:\Dev\Source | |
Set-PSReadlineOption -BellStyle None | |
# posh-git setup: | |
Import-Module posh-git | |
$GitPromptSettings.DefaultPromptPath.Text = '$(Split-Path -leaf -path (Get-Location))' |
If you lock your Windows 10 machine and find that after a period of time (1 minute? 3 minutes?) it goes to sleep and the displays turn off. You may have a value set in a hidden Power Option menu.
- Open the registry and go to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7
- Change the value of '
Attributes
' from 1, to 2. - You should now see the
Console lock display off timeout
options under theDisplay
menu in Power Options for a given profile. - Set the
Setting
propery for both On Battery\Plugged In to0
to force it off. - ???
- Profit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"theme": "dark", | |
"initialCols": 154, |
A place where I keep learning resources that I've found useful. Started as a list for my team at work, but will likely continue to grow outside that over time.
A chunk of the training courses here are pluralsight as it's what we've had access to at my company traditionally. That being said I'll try to find similar resources for non-pluralsight subscribers as times goes on; it just happens to be a go-to spot for Microsoft-stack teachers and developers.
- C# 9 and .NET 5 - Modern Cross-Platform Development
- https://www.amazon.com/NET-Cross-Platform-Development-intelligent-Framework/dp/180056810X/ref=zg_bs_697342_1
- The book takes a very modern approach to MS Stack C#/.NET using VS Code, but it contains a lot of history of the language and framework, a lot of "how we got here", and language fundamentals.
Useful things you can do with git.
- Cross-repository issue tagging:
- [org/repo#407]
- Reset local branch to match origin (throw away local commits):
git reset --hard origin/<branch_name>
- See diff between local and remote:
git diff origin/main..HEAD
- See files changed between local and origin after a fetch:
OlderNewer