Skip to content

Instantly share code, notes, and snippets.

View jtuttas's full-sized avatar

jtuttas jtuttas

  • http://www.mmbbs.de
View GitHub Profile
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
services:
mariadb:
image: docker.io/bitnami/mariadb:11.4
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_moodle
@jtuttas
jtuttas / test.md
Last active January 24, 2025 11:02
Logos

‎‎​

@jtuttas
jtuttas / install.md
Last active November 19, 2024 15:46
Moodle Bot

1. Anmeldung und Registrierung bei Open AI

console.log
@jtuttas
jtuttas / faces.py
Created June 13, 2024 15:23
Gesicht counter auf Pi
import requests
import cv2
import numpy as np
from gpiozero import LED
ledgreen = LED(17)
ledblue = LED(18)
ledred = LED(19)
# IP-Adresse und Port der Android IP Webcam
@jtuttas
jtuttas / zutritt.py
Created May 31, 2024 10:25
zutritt.py
import cv2
from PIL import Image
import re
from transformers import DonutProcessor, VisionEncoderDecoderModel
from datasets import load_dataset
import torch
allowed_cars = ["HAP515"]
# Initialisieren Sie die Kamera
@jtuttas
jtuttas / ledTest.py
Last active May 7, 2024 17:47
LED Test
from gpiozero import LED
from time import sleep
# Erstellen Sie ein LED-Objekt, das mit GPIO 17 verbunden ist
ledgreen = LED(17)
ledblue = LED(18)
ledred = LED(19)
# LED ein- und ausschalten
while True:
@jtuttas
jtuttas / server.py
Last active March 24, 2024 15:33
OPC_UA-Server
import asyncio
import logging
from asyncua import Server, ua
from asyncua.common.methods import uamethod
async def main():
_logger = logging.getLogger(__name__)
# setup our server
@jtuttas
jtuttas / Readme.md
Last active October 18, 2022 16:02
MoodleContentLoader

Moodle Content Loader

Ein HTML zum Nachladen von HTML aus einem Repos. in eine Moodle Seite.

Anzupassen sind die Code genannten Variablen.

@jtuttas
jtuttas / readme.md
Last active April 24, 2022 13:00
mmbbsmoodle

Moodle auf Ubuntu (z.B. WSL) installieren

LAMP System vorbereiten

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install mysql-server mysql-client libmysqlclient-dev
  • sudo apt-get install apache2 apache2-doc apache2-utils libexpat1 ssl-cert
  • sudo apt-get install libapache2-mod-php7.4 php7.4 php7.4-common php7.4-curl php7.4-dev php7.4-gd php-pear php-imagick php7.4-mysql php7.4-ps php7.4-xsl
  • sudo apt-get install php7.4-zip php7.4-mbstring php7.4-intl

MMBBS Moodle clonen

private double getBeitrag(int alter, int mitgliedsjahre) {
double beitrag = 0;
if (alter < 18) {
beitrag = 30.0;
} else if (alter <= 12) {
beitrag = 15.0;
} else {
beitrag = 50.0;
}
if (mitgliedsjahre > 5 && mitgliedsjahre <= 15) {