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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Audacity script to prepare long audio books or podcasts for listening in the swimming pool. | |
# The script will amplify the audio, because the volume usually is too low for the underwater speakers. | |
# It will also add DTMF tones every XX minutes, so the listener knows how much time has passed. | |
# It is very convenient to know how much time has passed, especially in Ukraine, when there is electricity outage. When you don't see the clock. | |
# The script will also add labels every XX minutes, so you can export multiple files for easier navigation between parts. | |
# Before running the script, make sure Audacity is running first and that mod-script-pipe is enabled |
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
#!/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" |
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 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; |
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
module.exports = function () { | |
var config = { | |
websiteRoot: "C:\\inetpub\\wwwroot\\sc911.sc", | |
sitecoreLibraries: "C:\\inetpub\\wwwroot\\sc911.sc\\bin", | |
hostName: "http://sc911.sc", | |
solutionName: "sc911", | |
buildConfiguration: "Debug", | |
runCleanBuilds: false, | |
toolsVersion: "16.0" | |
} |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SessionDeserialize | |
{ | |
public class HexEncoding | |
{ |
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 System.Collections; | |
using System.Collections.Concurrent; | |
using System.IO; | |
using System.Reflection; | |
using System.Xml; | |
using Sitecore.Caching; | |
using Sitecore.Caching.Generics; | |
using Sitecore.Configuration; | |
using Sitecore.Data; |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HtmlCache.aspx.cs" Inherits="Sitecore.Utils.HtmlCacheList" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<body> | |
<form id="form1" runat="server"> | |
<asp:Repeater ID="WebsiteCache" runat="server" ItemType="System.Tuple`2 [System.String, System.String]"> | |
<HeaderTemplate> | |
<table> | |
</HeaderTemplate> | |
<ItemTemplate> |