All public gists in this account are Public Domain unless a separate license is included in the Gist.
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 Install-AppInsights($instrumentationKey) { | |
mkdir c:\tempappinsights -Force | |
pushd c:\tempappinsights | |
try { | |
(New-Object Net.WebClient).DownloadFile('http://appinsightsstatusmonitor.blob.core.windows.net/statusmonitor/ApplicationInsights.ps1.zip',"c:\tempappinsights\ApplicationInsights.ps1.zip") | |
Expand-ZipFile C:\tempappinsights\ApplicationInsights.ps1.zip c:\tempappinsights | |
. C:\tempappinsights\ApplicationInsights.ps1 | |
ApplicationInsightsConfig $instrumentationKey | |
Start-DscConfiguration -Path C:\tempappinsights\ApplicationInsightsConfig -ComputerName localhost | |
} finally { |
I hereby claim:
- I am robdmoore on github.
- I am robdmoore (https://keybase.io/robdmoore) on keybase.
- I have a public key whose fingerprint is 7EC9 85C2 A5C2 4121 3EFB 4258 4730 FEAF BA2E 9A78
To claim this, I am signing this object:
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() { | |
$("form").each(function() { | |
$(this).find("[data-val-requiredif]").each(function() { | |
var $field = $(this); | |
var comparisonValue = $field.data("val-requiredif-dependentvalue"); | |
var operator = $field.data("val-requiredif-operator"); | |
var passonnull = $field.data("val-requiredif-passonnull"); | |
var dependentPropertyName = $field.data("val-requiredif-dependentproperty"); | |
var dependentProperties = $("[name=" + dependentPropertyName + "]"); |
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
<system.webServer> | |
<httpErrors errorMode="Custom" existingResponse="Replace" xdt:Transform="Insert"> | |
<remove statusCode="404" /> | |
<error statusCode="404" path="/error/404" responseMode="ExecuteURL" /> | |
<remove statusCode="500" /> | |
<error statusCode="500" path="/error/500" responseMode="ExecuteURL" /> | |
<remove statusCode="403" /> | |
<error statusCode="403" path="/error/403" responseMode="ExecuteURL" /> | |
</httpErrors> | |
</system.webServer> |
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
# Originally from http://poshcode.org/3819 | |
function Add-ToHostsFile { | |
<# | |
.DESCRIPTION | |
This function checks to see if an entry exists in the hosts file. | |
If it does not, it attempts to add it and verifies the entry. | |
.EXAMPLE | |
Add-ToHostsFile -IPAddress 192.168.0.1 -HostName MyMachine |
The following files were included in a NuGet package that we used OctopusDeploy to deploy an iOS over-the-air .ipa
file and also build a Cordova/PhoneGap app using the PhoneGapBuild API:
Deploy.ps1
- as per belowapp.zip
- zip of theconfig.xml
andwww
directories of the Cordova/PhoneGap projectnode
directorynode.exe
pgb.js
- as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1pgb-wrapper.js
- as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1node_modules
- all the dependencies as per https://gist.github.com/robdmoore/c09cb5f8aa7682f195c1
Microsoft.Data.Services.Client.dll
- From NuGet
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
$scriptpath = $(Split-Path $MyInvocation.MyCommand.Path) | |
cd $scriptpath | |
if (-not (ls *.publishsettings | Test-Any)) { | |
Write-Warning "Please save a .publishsettings file to this folder" | |
start . | |
Get-AzurePublishSettingsFile | |
exit 1 | |
} |
NewerOlder