Skip to content

Instantly share code, notes, and snippets.


Alberto Baigorria uialberto

View GitHub Profile
uialberto /
Created July 9, 2022 11:08 — forked from Klerith/
Flutter: Curso de Flutter - Instalaciones recomendadas


git config --global "Tu nombre"
git config --global "Tu correo"
uialberto / verify-iis-config.ps1
Created May 30, 2020 16:26
Verificación IIS Server Configuracion - Windows PowerShell ISE
View verify-iis-config.ps1
$configSection = Get-IISConfigSection -SectionPath "system.applicationHost/sites"
$state = Get-IISConfigCollection $configSection | Get-IISConfigCollectionElement -ConfigAttribute @{"Name"="Default Web Site"} | Get-IISConfigAttributeValue -AttributeName "State"
if($state -eq "Started")
Write-Host "Default Web Site esta iniciado" -ForegroundColor Green
Write-Host "Default Web Site no esta iniciado" -ForegroundColor Red
uialberto / verify-iis.ps1
Created May 30, 2020 16:24
Verificación IIS Server Modulos - Windows PowerShell ISE
View verify-iis.ps1
$goodmodules = @(
$badmodules = @(
uialberto / install-iis.ps1
Created May 30, 2020 16:22
Instalacion IIS Web Server por PowerShell
View install-iis.ps1
Write-Host "Instalacion IIS Server Script V1"
Import-Module servermanager
Remove-WindowsFeature Web-ASP, Web-CGI,Web-Ftp-Server
Add-WindowsFeature Web-WebServer, Web-Common-Http, Web-Asp-Net45, Web-Static-Content
uialberto / web-install-iis2.bat
Created May 30, 2020 16:20
Instalacion IIS Web Server por Console
View web-install-iis2.bat
@echo off
REM Install IIS-WebServer
dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul
if %ERRORLEVEL% == 0 (
echo "IIS Web Server no esta instalado. Instalando..."
dism /online /enable-feature /featurename:IIS-WebServer /all
uialberto / web-install-iis.bat
Created May 30, 2020 16:18
Instalacion IIS Web Server por Console
View web-install-iis.bat
@echo off
dism /online /get-featureinfo /featurename:IIS-WebServer | find "Deshabilitado" > nul
if %ERRORLEVEL% == 0 (
echo "IIS Web Server no esta instalado. Deberia ser instalado."
dism /online /enable-feature /featurename:IIS-WebServer /all
uialberto / IoCUnityMicrosoft.cs
Last active September 17, 2016 03:01
Contenedor de inversion de control Unity
View IoCUnityMicrosoft.cs
public class Bootstrapper
private IUnityContainer unityContainer;
public Bootstrapper()
unityContainer = new UnityContainer();
unityContainer.RegisterType<IPasswordCipher, Pbkdf2PasswordCipher>(new ContainerControlledLifetimeManager());
unityContainer.RegisterType<IPasswordCipherFactory, Pbkdf2PasswordCipherFactory>(new ContainerControlledLifetimeManager());
var cipherPassword = unityContainer.Resolve<IPasswordCipher>();
var cipherPasswordFactory = unityContainer.Resolve<IPasswordCipherFactory>();