Skip to content

Instantly share code, notes, and snippets.

@Uatschitchun
Uatschitchun / .Picapport fionnb picapport Docker with possibility to set Java memory.md
Last active April 29, 2021 18:20
This allows to set JAVA memory settings & environment variables within docker-compose.yml

With said Docker Container from: https://hub.docker.com/r/fionnb/picapport it sadly isn't possible to set JAVA memory options.

The Docker starts up picapport with running pa-start.sh. So I copied that script from inside the Container and (very dirty!) adapted it to be able to set -XX:MaxDirectMemorySize=2048m -Xms256m -Xmx1024m to one's own liking.

The diff to the original is added below.

For to make this work, create the docker-compose.yml & pa-start.sh inside the same folder and make pa-start.sh executeable with chmod +x pa-start.sh

Adjust the docker-compose.yml to your own setup and start up with docker-compose up -d

@Uatschitchun
Uatschitchun / nextcloud-deck-export-import.py
Created July 27, 2023 19:58 — forked from CodeShakingSheep/nextcloud-deck-export-import.py
Nextcloud Deck Export/Import (Note that all comments will be created from the user account specified in the first lines of the script)
import requests
urlFrom = 'https://cloud.domainfrom.tld'
authFrom = ('username', 'password')
urlTo = 'https://nextcloud.domainto.tld'
authTo = ('username', 'password')
headers={'OCS-APIRequest': 'true', 'Content-Type': 'application/json'}
headersOcsJson={'OCS-APIRequest': 'true', 'Accept': 'application/json'}