Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabrício Sanchez fabriciosanchez

View GitHub Profile
View gist:daedf2fbbe0456dd1dcd
public class Startup
{
public void Configuration(IAppBuilder app)
{
var config = new HttpConfiguration();
config.Routes.MapHttpRoute("default", "{controller}");
app.UseWebApi(config);
}
}
View gist:d466674e58c4fca52de9
Register-AzureProvider -ProviderNamespace Microsoft.Network
View gist:3946e70ee4b3fd5a2603
New-AzureResourceGroup -Name TesteDeGrupoDeRecurso -location "East US"
View gist:cba61dc63ee4e58bb8d3
Select-AzureSubscription -SubscriptionName "AssinaturaQueVocePretendeUtilizar"
View gist:796a4a1ca9c670aec609
Register-AzureProviderFeature -ProviderNamespace Microsoft.Network -FeatureName azurednspreview
View Startup.cs
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
{
// Setup configuration sources.
var builder = new ConfigurationBuilder(appEnv.ApplicationBasePath)
.AddJsonFile("config.json")
.AddEnvironmentVariables();
Configuration = builder.Build();
}
View gist:f3eef8363f37ead1fc78
"C:\Program Files (x86)\Windows Kits\8.1\bin\x86\makecert.exe" -sky exchange -r -n "CN=Nome do seu certificado" -pe -a sha256 -len 2048 -ss My "Nome do seu certificado"
View gist:3faf47398542343f3c99
$Senha = ConvertTo-SecureString -String "informe sua senha aqui" -Force –AsPlainText
$CertificadoBase = Get-ChildItem -Path Cert:\CurrentUser\My | where {$_.Subject -match "nome identico do certificado base”}
Export-PfxCertificate -FilePath C:\nome do seu certificado base aqui.pfx -Password $Senha -Cert $CertificadoBase