This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<AssemblyFile>.\packages\MSBuild.Extension.Pack.1.3.0\tools\net40\MSBuild.ExtensionPack.TaskFactory.PowerShell.dll</AssemblyFile> | |
</PropertyGroup> | |
<UsingTask TaskFactory="PowershellTaskFactory" TaskName="Changeset" AssemblyFile="$(AssemblyFile)"> | |
<ParameterGroup> | |
<changeset Output="true" /> | |
</ParameterGroup> | |
<Task> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[void][System.Reflection.Assembly]::Load('Microsoft.Build.Engine, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') | |
[void][System.Reflection.Assembly]::Load('Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') | |
[void][System.Reflection.Assembly]::Load('mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') | |
function make() | |
{ | |
<# | |
.SYNOPSIS | |
Builds all files according to a naming strategy found in the given or current path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
This task is based on the AssemblyInfo task written by Neil Enns (http://code.msdn.microsoft.com/AssemblyInfoTaskvers). It is used here with permission. | |
This targets file includes all the necessary information to automatically increment build numbers as part of | |
a regular build process. To use it simply include it in your project file after any other includes. The typical | |
include line looks like this: | |
<Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.VersionNumber.targets"/> | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-TeamcityBuildStatus | |
{ | |
<# | |
.SYNOPSIS | |
get status of build from Teamcity server | |
.EXAMPLE | |
Get-TeamcityBuildStatus -server servername -port 81 -buildID 12 -user timmy -password time | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$user="andrewh") | |
function show-recentgists | |
{ | |
param( | |
[string]$user, | |
[int]$count) | |
$url ="https://api.github.com/users/$user/gists" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module WebAdministration | |
$LoggingMSI="AdvancedLogging64.msi" | |
$uri='https://download.microsoft.com/download/9/6/5/96594C39-9918-466C-AFE0-920737351987/AdvancedLogging64.msi' | |
invoke-webrequest -uri $uri -OutFile $LoggingMSI | |
Start-Process -FilePath msiexec.exe -ArgumentList /i, $LoggingMSI , /quiet -Wait | |
# Disables http logging module | |
Set-WebConfigurationProperty -Filter system.webServer/httpLogging -PSPath machine/webroot/apphost -Name dontlog -Value true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this script assume your using dev and sets it too the prod aws cred | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$awsprofile) | |
$exists="$(aws configure get aws_access_key_id --profile $awsprofile)" | |
if ($exists) | |
{ | |
[Environment]::SetEnvironmentVariable("AWS_DEFAULT_PROFILE","$awsprofile","machine") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this script assume your using dev and sets it too the prod aws cred | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$awsprofile) | |
$exists="$(aws configure get aws_access_key_id --profile $awsprofile)" | |
if ($exists) | |
{ | |
[Environment]::SetEnvironmentVariable("AWS_DEFAULT_PROFILE","$awsprofile","machine") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter(Mandatory=$true)] | |
[string]$subscriptionName, | |
[Parameter(Mandatory=$true)] | |
[string]$serviceName, | |
[string]$slot="Staging") | |
Write-Output "$(Get-Date) - Selecting $SubscriptionName" | |
Select-Azuresubscription -SubscriptionName $SubscriptionName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"> | |
<PublicConfig> | |
<WadCfg> | |
<DiagnosticMonitorConfiguration overallQuotaInMB="2048"> | |
<DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Error" /> | |
<Directories scheduledTransferPeriod="PT1M"> | |
<IISLogs containerName="wad-iis-logfiles" /> | |
<FailedRequestLogs containerName="wad-failedrequestlogs" /> | |
<DataSources> |
OlderNewer