Skip to content

Instantly share code, notes, and snippets.

View michelvieira's full-sized avatar

Michel Vieira michelvieira

  • 07:02 (UTC -03:00)
View GitHub Profile
@michelvieira
michelvieira / tutorial.txt
Created August 29, 2021 01:22 — 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
@michelvieira
michelvieira / template-parser.php
Created September 26, 2019 16:49 — forked from datchley/template-parser.php
Quick and Dirty Template parsing in PHP
<?php
// the template
$template = "<h1>{TITLE}</h1>";
// add any template placeholder key/values here
$map = array(
'TITLE' => "ExtJS Sucks"
);
// Quick and dirty template parser, replace occurences of '{KEY}' with