Skip to content

Instantly share code, notes, and snippets.

View dori4n's full-sized avatar
:octocat:
Making weird magic...

Dorian dori4n

:octocat:
Making weird magic...
View GitHub Profile
@dori4n
dori4n / Office 2024 ISO Links at Microsoft.md
Created January 13, 2025 06:30
Office 2024 ISO Download Links at Microsoft
@dori4n
dori4n / Office 2021 ISO Links at Microsoft.md
Last active January 13, 2025 06:15
Office 2021 ISO Download Links at Microsoft
@dori4n
dori4n / Office 2016 ISO Links at Microsoft.md
Last active January 13, 2025 06:04 — forked from Issykul/Office 2016 ISO Links at Microsoft.md
Office 2016 ISO Links at Microsoft
@dori4n
dori4n / Office 2019 ISO Links at Microsoft.md
Last active January 13, 2025 06:08 — forked from Issykul/Office 2019 ISO Links at Microsoft.md
Office 2019 ISO Download Links at Microsoft
@dori4n
dori4n / Certify-PostHook.ps1
Created June 24, 2018 15:16
Certify PowerShell PostHook for Exchange Server managed from non-domain joined PCs
param($result)
if ($result.IsSuccess -eq $true)
{
# Convert CNG certificate storage to CSP (for Exchange 2013)
$tempfile = "$env:TEMP\CertifyTemp.pfx"
$pfx = get-pfxcertificate -filepath $result.ManagedItem.CertificatePath
certutil -f -p Certify -exportpfx $pfx.SerialNumber $tempfile
certutil -delstore my $pfx.SerialNumber
certutil -p Certify -csp "Microsoft RSA SChannel Cryptographic Provider" -importpfx $tempfile
@dori4n
dori4n / IsTldMatch.cs
Created April 16, 2015 15:29
IsTldMatch Uri extension method, nothing special, really.
using System;
using System.Web;
namespace Application
{
public static class Extensions
{
public static bool IsTldMatch(this Uri Url, string Tld)
{
if (HttpRequest.Url.Host == Tld || HttpRequest.Url.Host.EndsWith(string.Concat(".", Tld)) // could just as well return the result of this...
@dori4n
dori4n / Program.cs
Created March 30, 2015 21:38
System.Numerics glitch?
using System;
using System.Numerics;
using System.Security.Cryptography;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{