Skip to content

Instantly share code, notes, and snippets.

View KayeeNL's full-sized avatar

Robbert Hock KayeeNL

View GitHub Profile
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<api>
<services>
<configuration type="Sitecore.Services.Infrastructure.Configuration.ServicesConfiguration, Sitecore.Services.Infrastructure">
<allowedControllers hint="list:AddController">
<allowedController desc="WallpaperController">MikeRobbins.WallpaperManager.Controllers.WallpaperController, MikeRobbins.WallpaperManager</allowedController>
</allowedControllers>
@KayeeNL
KayeeNL / 1. RegisterWebApiRoute.cs
Created June 29, 2016 09:49 — forked from komainu85/1. RegisterWebApiRoute.cs
Web API Registration Sitecore
public class RegisterWebApiRoute
{
public void Process(PipelineArgs args)
{
var config = GlobalConfiguration.Configuration;
config.Routes.MapHttpRoute("DefaultApiRoute",
"MikeAPI/{controller}/{action}/{id}",
new { id = RouteParameter.Optional });
<location path="sitecore/shell/WebService">
<system.web>
<authorization>
<allow users="?,*" />
</authorization>
</system.web>
</location>
UPDATE
[aspnet_Membership]
SET
[Password]='qOvF8m8F2IcWMvfOBjJYHmfLABc=',
[PasswordSalt]='OM5gu45RQuJ76itRvkSPFw==',
[IsApproved] = '1',
[IsLockedOut] = '0'
WHERE
UserId IN (
SELECT UserId FROM dbo.aspnet_Users WHERE UserName = 'sitecore\Admin'
Get-ChildItem -Path "/sitecore/templates" -Recurse | Where-Object {$_.Fields["{AB162CC0-DC80-4ABF-8871-998EE5D7BA32}"] -like "treelist"} | Show-ListView -Property FullPath, Id
Get-ChildItem -Path "/sitecore/templates" -Recurse | Where-Object {$_.Fields["{AB162CC0-DC80-4ABF-8871-998EE5D7BA32}"] -like "multilist"} | Show-ListView -Property FullPath, Id
@KayeeNL
KayeeNL / sitecore-10-solr-840-install.ps1
Last active August 27, 2020 06:08
Sitecore 10 Solr 8.4.0 install
Install-SitecoreConfiguration -Path ".\Solr-SingleDeveloper.json" -SolrPort "8983" -SolrInstallRoot "c:\\solr" -SolrVersion "8.4.0"
@KayeeNL
KayeeNL / sitecore10-prerequisites.ps1
Created August 27, 2020 06:39
Sitecore 10 prerequisites install
Install-SitecoreConfiguration -Path ".\Prerequisites.json"
UPDATE
[aspnet_Membership]
SET
[Password]='VnPO4iQW2vaVUeMU+WTcMwxTFE90b8mB7eZB065prJf0q2f6up/tMwcO7XK1RsBqBz8q+WZOL4xxJ/SrrApH2Q==',
[PasswordSalt]='OM5gu45RQuJ76itRvkSPFw==',
[IsApproved] = '1',
[IsLockedOut] = '0'
WHERE
UserId IN (
SELECT UserId FROM dbo.aspnet_Users WHERE UserName = 'sitecore\Admin'
/****** Script for SelectTopNRows command from SSMS ******/
SELECT TOP (1000) [ServerName]
,[DatabaseName]
FROM [sc10_1_1_Xdb.Collection.ShardMapManager].[__ShardManagement].[ShardsGlobal]
/****** Script for SelectTopNRows command from SSMS ******/
SELECT TOP (1000) [ServerName]
,[DatabaseName]
FROM [sc10_1_1_Xdb.Collection.Shard0].[__ShardManagement].[ShardsLocal]
/****** Script for SelectTopNRows command from SSMS ******/
SELECT TOP (1000) [ServerName]
@KayeeNL
KayeeNL / sitecore-10-2-solr-882-install.ps1
Last active November 4, 2021 12:13
Sitecore 10.2 Solr 8.8.2 install
Install-SitecoreConfiguration -Path ".\Solr-SingleDeveloper.json" -SolrPort "8983" -SolrInstallRoot "c:\\solr" -SolrVersion "8.8.2"