Skip to content

Instantly share code, notes, and snippets.

View aolszowka's full-sized avatar
🦎
Looking for Bugs

Ace Olszowka aolszowka

🦎
Looking for Bugs
  • Billings, Montana
View GitHub Profile
@aolszowka
aolszowka / dockerfile
Created January 15, 2021 17:17 — forked from MartinSGill/dockerfile
Example Dockerfile for SSH Server on Windows Server Core
FROM microsoft/windowsservercore:1709
# Install Powershell
ADD https://github.com/PowerShell/PowerShell/releases/download/v6.0.0/PowerShell-6.0.0-win-x64.zip c:/powershell.zip
RUN powershell.exe -Command Expand-Archive c:/powershell.zip c:/PS6 ; Remove-Item c:/powershell.zip
RUN C:/PS6/pwsh.EXE -Command C:/PS6/Install-PowerShellRemoting.ps1
# Install SSH
ADD https://github.com/PowerShell/Win32-OpenSSH/releases/download/0.0.24.0/OpenSSH-Win64.zip c:/openssh.zip
RUN c:/PS6/pwsh.exe -Command Expand-Archive c:/openssh.zip c:/ ; Remove-Item c:/openssh.zip
@aolszowka
aolszowka / ContainsPackageReference.ps1
Last active October 13, 2020 21:06
PowerShell Snippet To Find CSPROJ Files with Particular Package Reference
[string[]]$ReferenceAssemblies =
"System.Collections.Concurrent",
"System.IO.FileSystem",
"System.Linq",
"System.Linq.Parallel",
"System.Runtime.Extensions",
"System.Xml",
"System.Xml.Linq",
"System.Xml.ReaderWriter",
"System.Xml.XDocument"
@aolszowka
aolszowka / PartialDependencyTree.g
Created October 17, 2019 20:14
PartialDependencyTree
digraph {
"1"
"1" -> "2"
"1" -> "3"
"1" -> "4"
"1" -> "5"
"1" -> "6"
"1" -> "7"
"1" -> "8"
"1" -> "9"
@aolszowka
aolszowka / Program.cs
Created January 7, 2019 14:13
Using Roslyn to Mass Format a Solution (No .editorconfig support)
namespace TestRosylnFormatter
{
using Microsoft.Build.Locator;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Formatting;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.MSBuild;
using Microsoft.CodeAnalysis.Options;
using System;
using System.IO;