Skip to content

Instantly share code, notes, and snippets.

[
{
"Name": "Bas",
"Claims": [
{
"Type": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
"Value": "BasLijten"
},
{
"Type": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
@BasLijten
BasLijten / CleanHTML
Created June 1, 2016 13:46
CleanHTML for Coveo: difference between CsQuery vs Regular expressions to prevent some selected HTML from being indexed by Coveo
private string CleanHtmlContent(string p_HtmlContent)
{
Stopwatch sw = Stopwatch.StartNew();
CQ dom = p_HtmlContent;
s_Logger.Info("Create dom: " + sw.ElapsedTicks);
dom.Remove(".noindex");
s_Logger.Info("remove from dom: " + sw.ElapsedTicks);
var html = dom.Text();
sw.Stop();
<?xml version="1.0" encoding="utf-8" ?>
<IOActions>
<IOAction path="App_Config\Include\CacheContainers.config.example" action="enable" />
<IOAction path="App_Config\Include\DataFolder.config.example" action="enable" />
<IOAction path="App_Config\Include\ScalabilitySettings.config.example" action="enable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Processing.Aggregation.Services.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Processing.Services.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.Aggregation.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.Database.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.RobotDetection.config" action="disable" />
<?xml version="1.0" encoding="utf-8" ?>
<IOActions>
<IOAction path="App_Config\Include\CacheContainers.config.example" action="enable" />
<IOAction path="App_Config\Include\DataFolder.config.example" action="enable" />
<IOAction path="App_Config\Include\ScalabilitySettings.config.example" action="enable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Processing.Aggregation.Services.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Processing.Services.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.Aggregation.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.Database.config" action="disable" />
<IOAction path="App_Config\Include\Sitecore.Analytics.Tracking.RobotDetection.config" action="disable" />
{
"scwdps":[
{
"role" : "cd",
"archiveXml" : "xP1.CD.archive.xml",
"parametersXml": "xP1.CD.parameters.xml",
"sccpls" : ["Sitecore.Cloud.RoleSpecific_CD.sccpl", "Sitecore.Cloud.Redis_CD.sccpl", "Sitecore.Cloud.Thundercracker_CD.sccpl", "Sitecore.Cloud.Security_CD.sccpl"]
},
{
"role" : "cm",
<remoting enabled="false" requireSecureConnection="false">
<authorization>
<add Permission="Allow" IdentityType="Role" Identity="sitecore\PowerShell Extensions Remoting" />
<!-- example to disable specific user from an endpoint: -->
<!--add Permission="Deny" IdentityType="User" Identity="sitecore\admin" /-->
</authorization>
</remoting>
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<sitecore>
<powershell>
<services>
<remoting>
<authorization>
<add Permission="Deny" IdentityType="User" Identity="sitecore\admin" xdt:Transform="Insert" />
</authorization>
</remoting>
<parameters>
<parameter name="Application Path" description="Full site path where you would like to install your application (i.e., Default Web Site/Content)" defaultValue="Default Web Site/Content" tags="iisapp">
<parameterEntry type="ProviderPath" scope="iisapp" match="WebSite" />
</parameter>
<parameter name="Sitecore Admin New Password" description="" tags="SQL, Hidden, DbUserPassword">
<parameterEntry type="TextFile" scope="SetSitecoreAdminPassword.sql" match="PlaceHolderForPassword" />
</parameter>
<parameter name="Core DB User Name" description="User name to access you Core database." tags="SQL, Hidden, DbUsername">
<parameterEntry type="TextFile" scope="CreateUser.Core.sql" match="PlaceHolderForUser" />
</parameter>
<parameter name="Cloud Search Connection String" description="Azure Search Services Connection String" tags="Hidden,NoStore">
<parameterEntry kind="XmlFile" scope="App_Config\\ConnectionStrings\.config$" match="//connectionStrings/add[@name='cloud.search']/@connectionString" />
</parameter>
<parameter name="Enable Remote Powershell" defaultValue="false">
<parameterEntry type="XmlFile" scope="App_Config\\Include\\Cognifide\.Powershell\.config$" match="//sitecore/powershell/services/remoting/@enabled"/>
</parameter>
<parameter name="Remote Powershell Require Secure Connection" defaultValue="true">
<parameterEntry type="XmlFile" scope="App_Config\\Include\\Cognifide\.Powershell\.config$" match="//sitecore/powershell/services/remoting/@requireSecureConnection"/>
</parameter>