Install the EpiServer.Templates package globally
dotnet new install EPiServer.TemplatesThen install the optional EpiServer CLI tools
dotnet tool install Episerver.Net.CLI -g --add-source https://nuget.optimizely.com/feed/packages.svc/Install the EpiServer.Templates package globally
dotnet new install EPiServer.TemplatesThen install the optional EpiServer CLI tools
dotnet tool install Episerver.Net.CLI -g --add-source https://nuget.optimizely.com/feed/packages.svc/| $containers = docker ps -a --format "table {{.Names}}" | |
| $container = $containers | ConvertFrom-Csv | Where-Object { $_.NAMES -match "-cm" } | Select-Object -First 1 -ExpandProperty NAMES | |
| docker exec $container curl http://cm |
| #!/bin/sh | |
| # Pre-commit Git hook | |
| # It runs Sitecore CLI Serialization check | |
| # And doesn't allow to perform commit if serialization is broken | |
| validate=$(dotnet sitecore ser validate) | |
| regex_errors="Errors were detected" | |
| count=$(echo "${validate}" | grep -c "${regex_errors}") | |
| if test $count -gt 0 | |
| then | |
| echo "Sitecore serialization errors were detected" |
| using GraphQL.Types; | |
| using Newtonsoft.Json; | |
| using Sitecore.Configuration; | |
| using Sitecore.Data.Items; | |
| using Sitecore.Data.Fields; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.LayoutService.Serialization.FieldSerializers; | |
| using Sitecore.LayoutService.Serialization.ItemSerializers; | |
| using Sitecore.LayoutService.Serialization.Pipelines.GetFieldSerializer; | |
| using Sitecore.Services.GraphQL.Content.GraphTypes; |
| #!/bin/bash | |
| # ofed-ubuntu.sh | |
| # Install Mellanox Ofed on Ubuntu Machines | |
| # | |
| # Author: Nilson Lopes (06/17/2021) | |
| ubuntu_release=$(awk -F '"' '/VERSION_ID/ {print $2}' /etc/os-release) | |
| mofed_package_version='latest' | |
| mofed_repo_base_url="https://linux.mellanox.com/public/repo/mlnx_ofed" |
| using Scriban.Runtime; | |
| using Sitecore.Data.Fields; | |
| using Sitecore.Data.Items; | |
| using Sitecore.XA.Foundation.Abstractions; | |
| using Sitecore.XA.Foundation.Scriban.Pipelines.GenerateScribanContext; | |
| using System; | |
| using Example.ScribanExtensions.Model; | |
| namespace Example.ScribanExtensions.Pipelines | |
| { |
| import React from 'react'; | |
| import { Head } from 'next/document'; | |
| import { cleanAmpPath } from 'next/dist/next-server/server/utils' | |
| function getOptionalModernScriptVariant(path: string) { | |
| if (process.env.__NEXT_MODERN_BUILD) { | |
| return path.replace(/\.js$/, '.module.js') | |
| } | |
| return path | |
| } |
| DECLARE @BlobID uniqueidentifier; | |
| SELECT @BlobID = '{FF8A2D01-8A77-4F1B-A966-65806993CD31}'; | |
| WITH [BlobFields] ([fieldid]) | |
| AS (SELECT [sharedfields].[itemid] | |
| FROM [sharedfields] | |
| WHERE [sharedfields].[fieldid] = @BlobID | |
| AND [sharedfields].[value] = 1 | |
| UNION | |
| SELECT [versionedfields].[itemid] |
| using GraphQL.Types; | |
| using Newtonsoft.Json; | |
| using Sitecore.Configuration; | |
| using Sitecore.Data.Items; | |
| using Sitecore.Data.Fields; | |
| using Sitecore.Diagnostics; | |
| using Sitecore.LayoutService.Serialization.FieldSerializers; | |
| using Sitecore.LayoutService.Serialization.ItemSerializers; | |
| using Sitecore.LayoutService.Serialization.Pipelines.GetFieldSerializer; | |
| using Sitecore.Services.GraphQL.Content.GraphTypes; |