Skip to content

Instantly share code, notes, and snippets.

View onemenzel's full-sized avatar

Lukas Menzel onemenzel

View GitHub Profile
@onemenzel
onemenzel / lti_dyn_reg_py.md
Last active November 13, 2024 09:21
Django + pylti1p3 dynamic registration

LTI Dynamic Registration

This LTI dynamic registration implementation follows this guide: https://moodlelti.theedtech.dev/dynreg/

It allows you to create a one-off registration link, which you can use to register your Django application at a tool consumer, using the pylti1p3 package.

If you use this code, please refer to the guide / spec to see which fields to include in the JSONs that are being exchanged with the consumer. This implementation has only been tested with Moodle.

License

// ==UserScript==
// @name Speakchat - skribbl.io
// @namespace Violentmonkey Scripts
// @match https://skribbl.io/
// @grant none
// @version 1.0
// @author Lukas Menzel @onemenzel
// @description 17.4.2021, 00:47:36
// ==/UserScript==
@onemenzel
onemenzel / pre-commit
Last active May 16, 2024 06:16
Git pre commit hook: run pylint, but only on changed python modules
#!/bin/sh
set -e
if [ -n $VIRTUAL_ENV ]; then
PATH=$VIRTUAL_ENV/bin:$PATH
fi
FILES=$(python << EOF
import subprocess
import re
import sys
@onemenzel
onemenzel / docker-compose.yaml
Created October 25, 2017 17:48
docker-compose file for a simple dgraph setup
version: '3'
services:
zero:
image: dgraph/dgraph
restart: always
volumes:
- ./data:/dgraph
command: dgraphzero --bindall=true --idx 1 --my "zero:8888" -w zw