Skip to content

Instantly share code, notes, and snippets.

View dsolovay's full-sized avatar

Dan Solovay dsolovay

View GitHub Profile
@dsolovay
dsolovay / ConfigureSitecore.cs
Last active December 8, 2021 06:01
Sitecore Identity to Sustainsys Plugin
using IdentityServer4;
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.DependencyInjection;
using Sustainsys.Saml2;
using Sustainsys.Saml2.Configuration;
using Sustainsys.Saml2.Metadata;
using Sustainsys.Saml2.WebSso;
namespace SitecoreIdentitySamlDemo
{
@richardszalay
richardszalay / IISAssemblyDebugging.psm1
Created June 14, 2019 02:56
Enable/Disable JIT optimizations for assemblies so they can be debugged with dnSpy
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
function Enable-IISAssemblyDebugging
{
param(
[string]$Path = ".",
[string]$Filter = "*.dll"
)
@dsolovay
dsolovay / Life.fs
Last active August 29, 2015 14:01
Simple Life implementation in F#
let rec MakeRow (length: int) (value: int) =
if length=0 then []
else value :: MakeRow (length - 1) value
let rec MakeGrid (n: int) (rowMaker) =
if n=0 then []
else rowMaker :: MakeGrid (n - 1) rowMaker
let MakeLifeGrid x = MakeGrid x (MakeRow x 0)
@mwhite
mwhite / git-aliases.md
Last active April 30, 2024 11:32
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc