Skip to content

Instantly share code, notes, and snippets.

@twiesing
twiesing / api.json
Last active October 31, 2025 13:06
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.0",
"info": {
"title": "Mittwald API",
"description": "## Introduction\n\nThis OpenAPI spec documents the mittwald API. It follows the\n[OpenAPI 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0.html).\n\n## Authentication\n\nYou will need an API token to access the API. You can obtain one by logging into the\n[mStudio](https://studio.mittwald.de) and navigating to the\n[\"API Tokens\" section in the user menu](https://studio.mittwald.de/app/profile/api-tokens).\n\nWhen making requests to the API, you can authenticate by passing your API token in the `X-Access-Token` header or as a\nbearer token.\n\n## Rate Limiting\n\nPlease note that usage of the API is rate-limited to prevent abuse. You can inspect the rate limiting for your current\nuser by observing the `X-Ratelimit-*` headers included in each response.\n\n## mStudio\n\nA main consumer of the mittwald API is the management interface for our customers, the\n[mStudio](https://studio.mittwald.de).\n\n## Contact and supp
{
"root": {
"type": "EmailLayout",
"data": {
"backdropColor": "#F5F5F5",
"canvasColor": "#FFFFFF",
"textColor": "#262626",
"fontFamily": "MODERN_SANS",
"childrenIds": [
"block-1744970939431",
@twiesing
twiesing / blueprint.yaml
Last active April 11, 2025 16:08
Zeitgesteuerter Schalter (ein/aus an Datum)
blueprint:
name: Zeitgesteuerter Schalter (ein/aus an Datum)
description: Schaltet einen beliebigen Schalter zu definierten Zeiten an einem bestimmten Datum ein und aus.
domain: automation
input:
target_switch:
name: Ziel-Schalter
description: Der Schalter, der ein- und ausgeschaltet werden soll.
selector:
entity:
@twiesing
twiesing / backup.sh
Last active February 17, 2024 12:04
Backup script for Databases in Docker
#!/bin/bash
# Überprüfen, ob es sich um eine MariaDB handelt
if [ -d "/var/lib/mysql" ]; then
echo "MariaDB gefunden, starte Backup..."
mariadb-dump --user=$MARIADB_USER --password=$MARIADB_PASSWORD $MARIADB_DATABASE > /var/lib/mysql/backup.sql
echo "MariaDB Backup abgeschlossen."
# Überprüfen, ob es sich um eine PostgreSQL handelt
elif [ -d "/var/lib/postgresql/data" ]; then
var TimeZoneDropdown=document.getElementsByClassName("select-dropdown")[0],TimeZones=TimeZoneDropdown.parentElement.getElementsByTagName("li");for(i=0;i<TimeZones.length;i++){var option=TimeZones[i],value=option.firstElementChild.innerText;if("Berlin"===value){option.click();break}}
<div class="col s9 content">
<h2>Website hinzufügen</h2>
<div id="feedback" class="alert alert-success">
Hauptadministrator erfolgreich angelegt!
</div>
<p>Konfigurieren Sie Ihre erste Website, welche über Matomo getrackt und analysiert werden soll:</p>
<form action="?action=firstWebsiteSetup&amp;module=Installation" name="websitesetupform" id="websitesetupform" method="post" class="ng-pristine ng-valid">
<div class="row form-group">
<div class="col s12 m12 l6">
<label class="">
define('WP_SITEURL', 'http://www.neue-domain.de');
define('WP_HOME', 'http://www.neue-domain.de');