Skip to content

Instantly share code, notes, and snippets.

For "Scaling your Migration Operations" we're using Systems Manager (SSM) which is not really something we covered in class.
On the left navigation, locate "Documents" at the bottom of the menu, then access the "Owned by me" tab.
For the first task, we're modifying ConfigureProxy. This YAML document is trying to run powershell commands on linux, and
linux commands on windows, and that is not desired behavior. There's two sections, one for Linux and one for windows and We
can trivially restrict the "inputs:" section with the following code:
precondition:
StringEquals:
- platformType
- Windows
@auroris
auroris / App_Code\IdentityServerAuthenticationExtension.cs
Last active July 5, 2023 22:51
Using Umbraco 11 with auroris/OpenIddict-WindowsAuth
using Microsoft.IdentityModel.Logging;
using Umbraco.Cms.Core;
namespace Umbraco4Wing.Plugins
{
public static class IdentityServerAuthenticationExtension
{
public static IUmbracoBuilder AddIdentityServerBackofficeAuthentication(this IUmbracoBuilder builder, IConfiguration _config)
{
string SchemeLabel = _config.GetValue<string>("IdentityServer:Name") ?? "Forces";
@auroris
auroris / Base64MediaConverter.cs
Last active September 24, 2020 15:54
An Umbraco 8 enhancement that converts a base64 encoded image into a proper media image. This file is a basic class that expects to be placed in an App_Code folder and compiled along with your Umbraco project.
using HtmlAgilityPack;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Composing;
using Umbraco.Core.Events;
using Umbraco.Core.Models;