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
USE master; | |
GO | |
ALTER DATABASE AdventureWorks | |
SET SINGLE_USER | |
WITH ROLLBACK IMMEDIATE; | |
ALTER DATABASE AdventureWorks | |
SET MULTI_USER; | |
GO |
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
.parent-element { | |
transform-style: preserve-3d; | |
} | |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
<%@ WebHandler Language="C#" Class="PostWFFM800Script" %> | |
using System; | |
using System.Linq; | |
using Sitecore.sitecore.admin; | |
using Sitecore.Data.Items; | |
using Sitecore.Data; | |
using System.Xml.Linq; | |
using System.Collections.Generic; | |
using Sitecore.SecurityModel; |
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
$TimezoneOffset = -6 | |
$currentTime = (Get-Date).ToUniversalTime() | |
Write-Output "Runbook started" | |
Write-Output "Current UTC/GMT time [$($currentTime.ToString("dddd, yyyy MMM dd HH:mm:ss"))] will be checked against schedules" | |
Write-Output "A TimeZone offset of [$TimezoneOffset] will be used in comparisons" | |
$TimeRange = "29 January" | |
# Initialize variables |
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
WITH ItemsWithFullPath (id, name, fullpath) | |
AS | |
( | |
SELECT ID, Name, cast(name as nvarchar(max)) as fullpath | |
FROM [dbo].Items | |
WHERE ParentID = '00000000-0000-0000-0000-000000000000' | |
UNION ALL | |
SELECT i.ID, i.Name, cast((fullpath +'/' + i.name) as nvarchar(max)) as fullpath | |
FROM [dbo].items i | |
INNER JOIN ItemsWithFullPath a on i.ParentID = a.id |
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
Function Set-SCSearchProvider | |
{ | |
param([string]$choice, [string]$rootPath) | |
$validInput = $true; | |
#test that path is valid | |
If (!(Test-Path -Path $rootPath)) | |
{ | |
Write-Host "The supplied path was invalid or inaccessible." -ForegroundColor Red; | |
$validInput = $false; |
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 EPiServer.Core | |
@using EPiServer.Editor | |
@using EPiServer.Web.Mvc.Html | |
@model MyWebsite.Models.BlockTypes.EmergencyNotificationBlock | |
<div class="card-static full"> | |
<div class="emergency-notification"> | |
<div class="icon @Model.AlertType.ToString().ToLower()"></div> | |
<div class="wrapper"> |
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 Microsoft.AspNetCore.Http; | |
using System.Net.Http; | |
namespace Microsoft.AspNetCore.Builder | |
{ | |
/// <summary> | |
/// Extension methods for registering the GraphiQL interface middleware. | |
/// </summary> | |
public static class GraphiQLDeveloperPageExtensions | |
{ |
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 System; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.AspNetCore.Mvc.Internal; | |
using Microsoft.Extensions.Configuration; | |
// ReSharper disable once CheckNamespace | |
namespace Microsoft.Extensions.DependencyInjection | |
{ | |
public static class WebApiServiceCollectionExtensions |
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( | |
[string]$windowsUser, | |
[string]$sourceRootPath | |
) | |
yarn global add undefender | |
undefender "C:\Program Files\nodejs" | |
if (![string]::IsNullOrWhiteSpace(($windowsUser))) { |
OlderNewer