Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
status="$1"
ext="$2"
if [ '!' = "${1}" ]; then
status='\!'
elif [ '' = "${1}" ]; then
status=''
fi
map h goBack
map l goForward
map H previousTab
map L nextTab
map i LinkHints.activateMode
map I LinkHints.activateModeToOpenInNewTab
from django.http import HttpResponseRedirect
from django.conf import settings
# from django.views.decorators.clickjacking import xframe_options_exempt
from re import compile
EXEMPT_URLS = [compile(settings.LOGIN_URL.lstrip('/'))]
if hasattr(settings, 'LOGIN_EXEMPT_URLS'):
EXEMPT_URLS += [compile(expr) for expr in settings.LOGIN_EXEMPT_URLS]
class LoginRequiredMiddleware:
version: "2"
services:
##
# Debian Workspace
##
# 9zilla:
# container_name: 9zilla
# hostname: 9zilla