Skip to content

Instantly share code, notes, and snippets.

View johannesvedder's full-sized avatar

Johannes Vedder johannesvedder

  • Potsdam, Germany
View GitHub Profile
@johannesvedder
johannesvedder / mattermost-dl.py
Last active October 14, 2023 12:07 — forked from RobertKrajewski/mattermost-dl.py
This script allows to export the content (text+files) of an interactively selected Mattermost channel (public, private, group, direct message) to files. Tested on Mattermost 5.27 using Python 3.7. Download as zip and execute: pip install -r requirements.txt && python mattermost-dl.py
import os
import sqlite3
from datetime import datetime, date
from typing import Tuple, Dict, List
import getpass
from mattermostdriver import Driver
import pathlib
import json
@johannesvedder
johannesvedder / install_docker.sh
Last active June 8, 2024 09:56
Install and configure docker for the use with a HPI VM
#!/bin/bash
# This script:
# - installs Docker with all prerequisites
# - configures the system to run Docker without root
# - configures Docker to start on boot with systemd
# - moves the Docker root to the home directory
# Configuration section
NEW_DOCKER_ROOT_DIR=$HOME/docker-root
@johannesvedder
johannesvedder / update-studyu-full
Last active August 28, 2022 17:12
Installs and updates a local StudyU and Supabase instance with customizable settings
#!/bin/bash
# This script installs or updates a self-hosted version of StudyU and Supabase locally using Docker.
# In order to run it securely, the default settings have to be modified by creating a copy of the following files:
# flutter_common/lib/envs/.env.selfhost
# docker/.env.example
# docker/volumes/api/kong.yml
# The customized copy of these files (with respect to their subdirectories) should be placed at: $CONF_FILE_LOC (see below)