What? You haven't taken it yet? It takes 10 minutes and runs through the end of Symposium.
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 the Sitecore 9 Item OData service with odata.js */ | |
var o = require('odata'); | |
var moment = require('moment'); | |
o().config({ | |
endpoint: 'http://symheadless.local/sitecore/api/ssc/aggregate/content/', | |
appending: [ | |
{ name: 'sc_apikey', value: 'D510CB0F-B2EF-4224-8F7A-7F04C020BDFE' } | |
] |
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
export default function(manifest) { | |
manifest.addTemplate({ | |
name: 'Setlist', | |
icon: '/~/icon/office/32x32/earth_music.png', | |
fields: [ | |
{ name: 'eventDate', type: 'Date' }, | |
{ name: 'artist', type: manifest.fieldTypes.singleLineText }, | |
{ name: 'venue', type: manifest.fieldTypes.singleLineText }, | |
{ name: 'location', type: manifest.fieldTypes.singleLineText }, | |
{ name: 'description', type: manifest.fieldTypes.richText }, |
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
## Nuget v2 URL for the target platform, and the target marketing version | |
$SitecoreNuget = "https://sitecore.myget.org/F/sc-platform-9-1/api/v2" | |
$TargetVersion = "9.1.0" | |
## Nuget URL to retrieve package metadata, including dependencies | |
$MetaPackage = "$SitecoreNuget/Packages(Id='Sitecore.Experience.Platform',Version='$TargetVersion')" | |
## Retrieve the package metadata from nuget (no nice way of doing this via CLI) | |
$PackageMetadata = [xml](Invoke-WebRequest $MetaPackage).Content |
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
$ErrorActionPreference = "Stop" | |
Function Get-Lorem($Minimum, $Maximum) { | |
# don't overrun randomtext.me | |
Start-Sleep -Milliseconds 300 | |
$words = Get-Random -Minimum $Minimum -Maximum ($Maximum+1) | |
return ([xml](ConvertFrom-Json (Invoke-WebRequest -UseBasicParsing http://www.randomtext.me/api/lorem/h1/$words).Content).text_out).h1 | |
} | |
Function Get-LoremUl($NumItems, $Minimum, $Maximum) { |
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
<!-- | |
A set of performance optimizations for development that vastly increase application startup time. | |
Should not be used in production, as they largely disable forensic diagnostics that you'd want there over fast startup time after a compile. | |
--> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<hooks> | |
<hook type="Sitecore.Diagnostics.HealthMonitorHook, Sitecore.Kernel"> | |
<patch:delete /> |
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
## Nuget v2 URL for the target platform, and the target marketing version | |
$SitecoreNuget = "https://sitecore.myget.org/F/sc-platform-9-1/api/v2" | |
$TargetVersion = "9.1.0" | |
function Add-XMLAttribute([System.Xml.XmlNode] $Node, $Name, $Value) | |
{ | |
$attrib = $Node.OwnerDocument.CreateAttribute($Name) | |
$attrib.Value = $Value | |
$node.Attributes.Append($attrib) | |
} |
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
/** Get the interactions. **/ | |
select [InteractionId], [LastModified], [EventType], [PageUrl], [ItemLanguage], [DefinitionId], [EventText] | |
FROM | |
(SELECT TOP (1000) [InteractionId] | |
,[LastModified] | |
,[Events] | |
FROM [Sitecore.Xdb.Collection.Shard0].[xdb_collection].[Interactions] | |
UNION | |
SELECT TOP (1000) [InteractionId] | |
,[LastModified] |
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
Param( | |
$isolation="process", | |
$port=8765 | |
) | |
Write-Host "Opening incoming connections on port $port" -ForegroundColor Green | |
netsh advfirewall firewall add rule name="Docker Test Open Port $port" dir=in action=allow protocol=TCP localport=$port | |
Write-Host "Turning on firewall logging" -ForegroundColor Green | |
auditpol /set /subcategory:"Filtering Platform Packet Drop" /failure:enable /success:enable |
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
@model LanguageSwitcherModel | |
@foreach (var culture in Model.SupportedCultures) | |
{ | |
if (Model.CurrentUICulture.Name == culture.Name) | |
{ | |
<strong>@culture.DisplayName</strong> | |
} | |
else | |
{ |
OlderNewer