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
# config | |
$svr = "127.0.0.1,50000" | |
$db = "moveittransfer" | |
$root = "C:/MOVEIT" | |
# connection | |
$sqlConnection = New-Object System.Data.SqlClient.SqlConnection | |
$sqlConnection.ConnectionString = "Server=$svr;Database=$db;Integrated Security=True" | |
$sqlConnection.Open() |
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
{ | |
"proxychain": [ | |
{ | |
"name": "varnish", | |
"image": "varnish:4.0.3" | |
} | |
], | |
"environments": { | |
"Production": { | |
"origin": { |
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
$siteName = $OctopusParameters['SiteName'] | |
Add-PSSnapin WebAdministration -ErrorAction SilentlyContinue | |
Import-Module WebAdministration -ErrorAction SilentlyContinue | |
Write-Host "Getting allowed server variables..." | |
$allowedServerVariables = Get-WebConfigurationProperty -PSPath "MACHINE/WEBROOT/APPHOST" -filter "system.webServer/rewrite/allowedServerVariables/add" -Name name | |
Write-Host "Found $($allowedServerVariables.Length)..." | |
if ( ($allowedServerVariables -eq $null) -or ( $allowedServerVariables | ?{ $_.Value -eq "HTTPS" } ).Length -eq 0 ) { |
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 | |
function Is64Bit { | |
[IntPtr]::Size -eq 8 | |
} | |
function InstallIISRewriteModule(){ | |
$wc = New-Object System.Net.WebClient | |
$dest = "IISRewrite.msi" | |
$url | |
if (Is64Bit){ |
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
CREATE TABLE [dbo].[UCUniqueIdentifiers]( | |
[DeletedId] [uniqueidentifier] NOT NULL, | |
[PreviousId] [uniqueidentifier] NOT NULL, | |
CONSTRAINT [PK_UCUniqueIdentifiers] | |
PRIMARY KEY CLUSTERED ([DeletedId] ASC) | |
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY] | |
GO |
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
using Umbraco.Courier.Core; | |
using Umbraco.Courier.Core.Enums; | |
using Umbraco.Courier.ItemProviders; | |
using umbraco.interfaces; | |
namespace CourierTest | |
{ | |
public class ItemEventsApplicationStartupHandler : IApplicationStartupHandler | |
{ | |
public ItemEventsApplicationStartupHandler() |