Skip to content

Instantly share code, notes, and snippets.

@ak00001
ak00001 / tutor-docker-install.sh
Created September 23, 2020 09:39
Tutor-install bash script
#!/bin/bash
#---------------------------------------------------------
#
# script by: NTNU Beta v/Andreas Krokan
#
# date: january 20, 2020
#
# usage: Install Tutor and its prerequisites.
# curl -sSL https://raw.githubusercontent.com/NTNUbeta/digit.scripts/master/tutor-install/tutor-docker-install.sh | bash -e
#
@ak00001
ak00001 / allowedemail.yml
Last active January 4, 2022 17:50
A YAML plugin for Tutor which restricts registration by email domain.
name: allowedemail
version: 0.0.1
patches:
common-env-features: |
# restrict registration by email pattern
"REGISTRATION_EMAIL_PATTERNS_ALLOWED" = ["^.*@(.*\\.)?example\\.com$", "(^\\w+\\.\\w+)@school\\.tld$"]
name: myplugin
version: 0.0.1
patches:
cms-env-features: |
# myplugin special studio email request settings
"STUDIO_REQUEST_EMAIL": "admin@example.com"