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
tracker.CurrentPage.TriggerEvent("Search", "Sitecore Answers search: {0}".FormatWith(searchedText), searchedText, string.Empty, resultsCount); |
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
namespace Sitecore.TestProject.Analytics.Data.Filters | |
{ | |
using Sitecore.Analytics; | |
using Sitecore.Analytics.Data.Filters.Filters; | |
using Sitecore.Diagnostics; | |
/// <summary> | |
/// WherePageEventTextLike: filter class | |
/// </summary> | |
public class WherePageEventTextLike : FilterBase |
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
// Converting Form table | |
this.PopulateMessage("MIGRATION START: Converting Form table", this.resultDiv); | |
var values = new object[6]; | |
var command = new SQLiteCommand("SELECT * FROM Form", sqliteConnection); | |
using (var reader = command.ExecuteReader()) | |
{ | |
while (reader.Read()) | |
{ |
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
[WebMethod] | |
public static object CyclicallyInheritedTemplates() | |
{ | |
using (new SecurityDisabler()) | |
{ | |
var templates = GetMasterTemplates(); | |
var resultPairs = new List<Pair<string, string>>(); | |
foreach (var template in templates) | |
{ |
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
----version---- | |
language: en | |
version: 1 | |
revision: 1b0dc1ed-b1c8-4bd1-9353-dd385e0989e5 | |
… | |
----version---- | |
language: en | |
version: 2 | |
revision: cbb05750-27dd-4767-b150-bafc4b26f3b5 | |
… |
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
AzCopy /source:https://wndscstor4.blob.core.windows.net/vhds /dest:https://wndscstor5.blob.core.windows.net/vhds /sourcekey:<here-is-source-key> /destkey:<here-is-destination-key> /Pattern:hjipt1rw.hkz201603042145380777.vhd |
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
# Used to copy VM disk image between Azure storage account, can be used as an alternative to AzCopy# | |
# VHD blob to copy # | |
$blobName = "3zlubhfb.m2s201603051726390086.vhd" | |
# Source Storage Account Information # | |
$sourceStorageAccountName = "wndscstor4" | |
$sourceKey = "<source-key>" | |
$sourceContext = New-AzureStorageContext -StorageAccountName $sourceStorageAccountName -StorageAccountKey $sourceKey | |
$sourceContainer = "vhds" |
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
# Creates VM Disk from existing disk image and then creates Azure VM# | |
Add-AzureDisk -DiskName "Traincore2-15-4" ` | |
-OS Windows ` | |
-MediaLocation "https://wndscstor5.blob.core.windows.net/vmvhds/3zl34ubhfb.m2ss20781603051726390086.vhd" ` | |
-Verbose | |
#In case of using another subscription should be specified | |
Set-AzureSubscription -SubscriptionName "Nutzungsbasierte Bezahlung" -CurrentStorageAccountName "wndscstor5" | |
New-AzureVMConfig -Name "Traincore2-15-4" -InstanceSize Large -DiskName "Traincore2-15-4" | Add-AzureEndpoint -Name "Remote Desktop" -Protocol "tcp" -PublicPort 3389 -LocalPort 3389 | Add-AzureEndpoint -Name "WinRM" -Protocol "tcp" -PublicPort 5986 -LocalPort 5986 | New-AzureVM -ServiceName "Traincore2-15-4" -Location "West Europe" |
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
# Sets the default Azure subscription # | |
Set-AzureSubscription -SubscriptionName "Visual Studio Premium with MSDN" -CurrentStorageAccountName dyn848deb63623f2af4d |
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
# Shows the information to which storage account belongs a VM # | |
$disk = Get-AzureDisk | Where-Object { $_.AttachedTo.RoleName -eq "traincore15-3" } | |
$mediaLink = $disk.MediaLink | |
$storageAccountName = $mediaLink.Host.Split('.')[0] | |
Write-Output $storageAccountName |
OlderNewer