Skip to content

Instantly share code, notes, and snippets.

View cmsouzac's full-sized avatar

Cristian Souza cmsouzac

View GitHub Profile
@cmsouzac
cmsouzac / tutorial.txt
Created September 12, 2023 22:10 — forked from luizomf/tutorial.txt
WSL2 e Docker no Windows 10.
### Tutorial oficial:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
### Passo 1 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
### Passo 2 (PowerShell Admin):
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
### Passo 3
@cmsouzac
cmsouzac / ex1.cs
Created February 7, 2023 16:46
Exemplos de codigo
public static void Start()
{
var file = new StringBuilder();
do
{
file.Append(Console.ReadLine());
file.Append(Environment.NewLine);
} while (Console.ReadKey().Key != ConsoleKey.Escape);