Configure allowed callback urls:
https://pad.server.com/auth/oauth2/callback
http://pad.server.com/auth/oauth2/callback
Configure scopes:
| #!/bin/bash | |
| CHROOTDIR=/opt/minichroot | |
| mkdir -p ${CHROOTDIR}/bin | |
| mkdir -p ${CHROOTDIR}/lib64 | |
| mkdir -p ${CHROOTDIR}/etc/dropbear | |
| mkdir -p ${CHROOTDIR}/dev | |
| mkdir -p ${CHROOTDIR}/tmp |
| #!/bin/sh | |
| # add to config | |
| # --route-noexec | |
| # --route-up script.sh | |
| # --route-pre-down script.sh | |
| echo "++++++++++++ $script_type ++++++++++++" | logger -t ovpn_route | |
| #env | tee -a /tmp/vpn | |
| #echo "--------------------------------------" | tee -a /tmp/vpn |
| #!/usr/bin/python3 | |
| # | |
| # Simple Bloom filter implementation in Python 3 | |
| # Copyright 2017 Hector Martin "marcan" <marcan@marcan.st> | |
| # Licensed under the terms of the MIT license | |
| # | |
| # Written to be used with the Have I been pwned? password list: | |
| # https://haveibeenpwned.com/passwords | |
| # | |
| # Download the pre-computed filter here (968MB, k=11, false positive p=0.0005): |
| #listener 1883 192.168.178.25 | |
| listener 1883 | |
| log_dest syslog | |
| log_dest stdout | |
| log_dest topic | |
| log_type error | |
| log_type warning | |
| log_type notice | |
| log_type information | |
| connection_messages true |
| #!/usr/bin/env python | |
| import paho.mqtt.client as mqtt | |
| import json | |
| import time | |
| import requests | |
| nodename="sonoff" | |
| apikey="--xx--" | |
| url="https://emoncms.org/input/post" |
| #!/bin/sh | |
| # Author: bri | |
| # Will add all interfaces in state DOWN to /etc/network/interfaces.d/auto.cfg | |
| # with option dhcp | |
| ## for iface in `ls /sys/class/net/`; do | |
| /sbin/ip -br l | awk '/DOWN/{print $1}' | | |
| while read dev | |
| do |
| import logging | |
| import os | |
| import sys | |
| from django.core.wsgi import get_wsgi_application | |
| from django.conf import settings | |
| from wsgiref.simple_server import make_server | |
| from werkzeug.wsgi import SharedDataMiddleware,DispatcherMiddleware | |
| from werkzeug.exceptions import NotFound | |
| from werkzeug.utils import redirect |