Skip to content

Instantly share code, notes, and snippets.

View jamct's full-sized avatar

Jan jamct

  • c't magazine
  • Hannover
View GitHub Profile
@jamct
jamct / docker-compose.env
Created April 18, 2024 08:16
Docker-Compose for Paperless-ngx
# The UID and GID of the user used to run paperless in the container. Set this
# to your UID and GID on the host so that you have write access to the
# consumption directory.
USERMAP_UID=1028
USERMAP_GID=100
# Additional languages to install for text recognition, separated by a
# whitespace. Note that this is
# different from PAPERLESS_OCR_LANGUAGE (default=eng), which defines the
@jamct
jamct / .env
Created February 1, 2024 21:44
Nextcloud + Rocket.Chat
NC_VERSION=28
NC_HOST=cloud.example.org
RC_VERSION=6.5.0
RC_HOST=chat.example.org
MONGO_VERSION=7.0
MYSQL_ROOT_PASSWORD=verySecret
MYSQL_PASSWORD=secret
@jamct
jamct / 2-first-deployment.yml
Last active June 6, 2023 13:24
Beispiele: Kubernetes-Einstieg für Docker-Kenner
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-first-nginx-deployment
labels:
app: my-nginx
spec:
replicas: 3
strategy:
import qrcode
def createQr(vwz,iban,bic,recipient,amount,filename="epc_qr"):
# The docs can be found here: https://pypi.org/project/qrcode/
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_M)
qr.add_data("BCD\n")
qr.add_data("002\n")
qr.add_data("1\n")
qr.add_data("SCT\n")
@jamct
jamct / Readme.md
Last active October 25, 2022 16:49

Folder structure

docker-compose.yml
elastic/
  elasticsearch.yml
kibana/
  kibana.yml
logstash/
 logstash.yml
@jamct
jamct / docker-compose.yml
Created December 11, 2019 17:20
CockroachDB-Demo
version: "3"
services:
cockroach1:
image: cockroachdb/cockroach:v19.2.0
command: start --insecure
ports:
- "8080:8080"
volumes:
- ./data/cockroach1:/cockroach/cockroach-data
networks:
@jamct
jamct / docker-compose.yml
Last active November 16, 2021 16:37
WordPress with Docker-Compose
version: '3.7'
services:
db:
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: sehr_geheim
MYSQL_DATABASE: wordpress
@jamct
jamct / chrome_kiosk_multiple.ps1
Created January 24, 2018 15:50
PowerShell-Scripts for digital signage
& "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-default-browser-check --no-first-run --disable-infobars --disable-session-crashed-bubble --kiosk https://heise.de --overscroll-history-navigation=0 --user-data-dir=c:/screen1
& "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-default-browser-check --no-first-run --disable-infobars --disable-session-crashed-bubble --kiosk https://ct.de --overscroll-history-navigation=0 --window-position=1920,0 --user-data-dir=c:/screen2
Add-Type -AssemblyName System.Windows.Forms
[Windows.Forms.Cursor]::Position = "100000,100000"
@jamct
jamct / ajax_example.htm
Last active March 20, 2018 07:54
Demo für Offline-Webanwendung
<!DOCTYPE html>
<html manifest="beispiel.appcache">
<body>
<div id="ajax_container">
</div>
<button type="button" onclick="loadContent()">Inhalte nachladen</button>
<script>
@jamct
jamct / aframe_6.htm
Created July 18, 2017 16:16
A-Frame Demo: Hand-Controller
<!DOCTYPE html>
<html>
<head>
<title>A-Frame-Demo 6</title>
<meta name="description" content="Handcontroller">
<meta charset="utf-8">
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
</head>
<body>