Skip to content

Instantly share code, notes, and snippets.

@ahwm
ahwm / PasswordChecker.cs
Last active September 30, 2021 14:06
Custom Password Checker for Umbraco 9
// if using as standalone package, add package reference to Umbraco.Cms.Web.Common (9.0+)
// We use this to authenticate against a rotating password, which keeps access to employees
// If an employee leaves or it's suspected to be compromised it can be rotated at will
using Newtonsoft.Json;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using Umbraco.Cms.Core.Security;
@ahwm
ahwm / InfiniteScroll.js
Last active December 12, 2024 17:47
Infinite Scroll ability with plain JavaScript (no jQuery)
/*
* Infinite Scroll js, no jQuery reliance
*
*/
var activeCall = false,
triggerSelector = '.product-item',
triggerElem,
pixelsBeforeTrigger = 300,
div = document.querySelector('#dataParentDiv > .row'),
@ahwm
ahwm / build-svn-1.14.3.cmd
Last active December 29, 2023 21:28
Build SVN 1.14.x on Windows using ApacheLounge release of Apache 2.4
rem Prerequisite: Visual Studio 2019 with "Desktop Development with C++" workload installed (different versions may work with modifications)
rem Prerequisite: Python 2.7 or 3.8 (Subversion's 3.x support is experimental, so this script still uses 2.7)
rem Prerequisite: JDK, uses Amazon Corretto 8: https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jdk.zip (Update path below)
rem Prerequisite: OpenSSL, download from: https://slproweb.com/products/Win32OpenSSL.html
rem md \build-svn
rem md \build-svn\svn
rem download httpd 2.4 from https://www.apachelounge.com/download/ -> \build-svn\Apache24
rem download subversion 1.14.x from https://subversion.apache.org/download.cgi#recommended-release -> \build-svn\subversion-%VERSION%
rem download serf 1.3.10 from https://downloads.apache.org/serf/serf-1.3.10.zip -> \build-svn\serf-1.3.10
rem download serf.mak from https://github.com/Jan-E/svn-windows/raw/master/serf.mak -> \build-svn\serf-1.3.10\serf.mak