Skip to content

Instantly share code, notes, and snippets.

View jtuttas's full-sized avatar

jtuttas jtuttas

  • http://www.mmbbs.de
View GitHub Profile
@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) {

Hallo

Welt

@jtuttas
jtuttas / README.md
Last active October 8, 2021 15:34
MocUps

Hinweise

Damit draw IO die letzte Version des GIST laden kann, mit der HASH wert des Commits aus der URL entfernt werden.

Beispiel

aus...
https://gist.githubusercontent.com/jtuttas/1d483c1dde262c5609010a3c62e34d81/raw/d61ee7a522130a14addf429670109289bcaa547f/erd.drawio

wird....
https://gist.githubusercontent.com/jtuttas/1d483c1dde262c5609010a3c62e34d81/raw/erd.drawio
@jtuttas
jtuttas / client.py
Last active April 27, 2021 06:49
PythonServer
import requests
data = {
"temp": 22.5
}
headers = {'Content-type': 'application/json'}
r = requests.post('http://localhost:8080?temp=19', json=data, headers=headers)
print(str(r))
@jtuttas
jtuttas / README.md
Last active February 20, 2021 16:15
O365Excel2SQLite

Import an Excel Sheet from O365, convert it to csv and Import the data into an sqlite Database!

from tkinter import *
from tkinter.font import Font
import time
import random
import win32com.client
from tkinter import filedialog
rand=-1
slides=0
myPresentation=None
@jtuttas
jtuttas / GA1_Winter2020_HS3.drawio
Last active December 30, 2020 14:17
IHK Aufgaben
<mxfile host="65bd71144e" modified="2020-12-30T14:17:58.264Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.52.0 Chrome/83.0.4103.122 Electron/9.3.5 Safari/537.36" etag="O_ioZgWCppsgLUfVQ_hY" version="13.10.0" type="embed">
<diagram id="7axcHnemPGxGrDsgHI2C" name="HS3">
<mxGraphModel dx="545" dy="492" grid="1" gridSize="10" guides="0" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="&lt;h1&gt;3. Handlungsschritt (25 Punkte)&lt;/h1&gt;&lt;p&gt;Die Realisierung des Onlineshops soll mit einer objektorientierten Programmiersprache erfolgen.&lt;/p&gt;&lt;p&gt;a) Es sind folgende Pflichfelder gegeben:&lt;/p&gt;&lt;p&gt;- Ein &quot;Artikel&quot; hat einen Namen und einen&amp;nbsp; Preis&lt;/p&gt;&lt;p&gt;- Beim Anlegen eines neuen Artikels werden Name und Prei