Skip to content

Instantly share code, notes, and snippets.

@gunndabad
gunndabad / index.js
Created January 13, 2025 15:55
TRS webhook verifier
import express from "express";
import { verify } from "@ltonetwork/http-message-signatures";
import ec from "js-crypto-ec";
const app = express();
const port = 3000;
const trsJwksEndpoint =
"https://preprod.teacher-qualifications-api.education.gov.uk/webhook-jwks";
@gunndabad
gunndabad / DbDeploy.cs
Created April 29, 2013 13:41
Deploy SQL schema updates atomically from a selection of files.
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace DbDeploy
{