This file contains hidden or 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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |
This file contains hidden or 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
public static string NumberToWords(int number) | |
{ | |
if (number == 0) | |
return "zero"; | |
if (number < 0) | |
return "minus " + NumberToWords(Math.Abs(number)); | |
string words = ""; |
This file contains hidden or 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-Function CommonFunctions | |
$siteDropdownList = Get-Sites | |
$languageDropdownList = Get-Languages | |
$addVersionBehaviourList = [ordered]@{Overwrite="Overwrite"; Skip="Skip"; Append="Append"}; | |
$addVersionBehaviour = "Append" | |
$props = @{ | |
Parameters = @( |
This file contains hidden or 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-Function CommonFunctions | |
$siteDropdownList = Get-Sites | |
$languageDropdownList = Get-Languages | |
$props = @{ | |
Parameters = @( | |
@{Name="sourceSitePath"; Title="Choose a source site"; Options=$siteDropdownList; Tooltip="Choose one."}, | |
@{Name="sourceLanguage"; Title="Choose a source language"; Options=$languageDropdownList; Tooltip="Choose one."}, | |
@{Name="destinationSiteName"; Title="Provide a destination site name"; Value=""; Tooltip="Choose a new site name."}, |
This file contains hidden or 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
# All cores use the same index config on remote servers so you should only have to add it to a single core. However locally each core uses a diff config set | |
$solrHost = "localhost:8985" | |
$index = "search_master_index" | |
$ignoreSslErrors = $True | |
$addFieldTypeJson = @' | |
{ | |
"add-field-type": { | |
"name":"text_ko", | |
"class":"solr.TextField", | |
"analyzer":{ |
This file contains hidden or 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" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<eventing defaultProvider="sitecore"> | |
<eventQueueProvider defaultEventQueue="core"> | |
<eventQueue name="web_secondary" patch:after="eventQueue[@name='web']" type="Sitecore.Data.Eventing.$(database)EventQueue, Sitecore.Kernel"> | |
<param ref="dataApis/dataApi[@name='$(database)']" param1="$(name)" /> | |
<param hint="" ref="PropertyStoreProvider/store[@name='$(name)']" /> | |
</eventQueue> | |
</eventQueueProvider> |
This file contains hidden or 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"?> | |
<!--For more information on using transformations see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. --> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" | |
xmlns:env="http://www.sitecore.net/xmlconfig/env/" | |
xmlns:role="http://www.sitecore.net/xmlconfig/role/" | |
xmlns:search="http://www.sitecore.net/xmlconfig/search/" | |
xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<sitecore search:require="Solr"> | |
<contentSearch env:require="!Local"> | |
<solrOperationsFactory type="Sitecore.ContentSearch.SolrProvider.SolrOperations.SolrOperationsFactory, Sitecore.ContentSearch.SolrProvider" /> |
This file contains hidden or 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
<%@ Page Language="C#" %> | |
<%@ Import Namespace="System.Diagnostics" %> | |
<%@ Import Namespace="System.Net" %> | |
<%@ Import Namespace="Sitecore.ContentSearch" %> | |
<%@ Import Namespace="Sitecore.Data" %> | |
<%@ Import Namespace="Sitecore.Data.Items" %> | |
<%@ Import Namespace="StackExchange.Redis" %> | |
<%@ Import Namespace="System.Collections.Concurrent" %> |
This file contains hidden or 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
Set-StrictMode -Version Latest | |
#change these values to your own setup | |
$webhockUrl = "Slack Web hock" | |
$teamcityUsername = "username" | |
$teamcityPassword = "password" | |
$teamcityUrl = "teamcity URL" | |
$teamcityBuildNumber = %build.number% | |
$teamcityBuildId = %teamcity.build.id% |
This file contains hidden or 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
[Serializable] | |
public class ExportSearchToFile : Command | |
{ | |
private string _linkToFile = string.Empty; | |
public override void Execute(CommandContext context) | |
{ | |
if (context.Items.Length == 0) | |
return; | |
Item obj = context.Items[0]; |
NewerOlder