Skip to content

Instantly share code, notes, and snippets.

@ClementRoyer
ClementRoyer / poc-mpg-auth.js
Created October 9, 2025 20:51
POC MPG sign-in with Ligue1 OAuth
const axios = require('axios');
const crypto = require('crypto');
async function authenticateMPG(email, password) {
const amplitudeId = crypto.randomUUID();
const validate = (status) => status < 400;
// Step 1: Initiate auth with MPG
const formData = new URLSearchParams({ email, password });
const auth = await axios.post(
@m-wild
m-wild / cloudflaredns.sh
Last active June 1, 2022 20:18
CloudFlare dynamic dns updater module for Synology
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#