Skip to content

Instantly share code, notes, and snippets.

@DunklerPhoenix
DunklerPhoenix / docker-self-cert.sh
Created December 25, 2024 22:56 — forked from vmatekole/docker-self-cert.sh
Secure your Docker socket with TLS/SSL
#!/bin/bash
# Generate self-cert certificates for Docker socket. I have tried many tutorials including http://tech.paulcz.net/2016/01/secure-docker-with-tls/
# None worked... So I took the official steps from Docker docs - https://docs.docker.com/engine/security/https/ and placed them
# in a script. Please ensure that you replace the IP addresses/DNS names denoted in X with IP's and hostnames you wish to allow
# to connect with your daemon, normally 127.0.0.1 is always required and the hostname of your server. If you have a coreos cluster
# placing IP's and hostnames of each node maybe preferable over creating unique certs for each node.
# This script does not cover the steps for copying your certs to the relevant locations, as per the following document - https://docs.docker.com/engine/security/https/
# 1. In our production setup we copy server.key, server-cert.pem and ca-cert.pem to /etc/docker/ssl
# 2. Client certs(ca.pem,cert.pem,key.pem) are copied to user dir in our case user core - /home/core/.docker/
@DunklerPhoenix
DunklerPhoenix / enterprise_token.rb
Created November 24, 2024 06:43 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@DunklerPhoenix
DunklerPhoenix / README.md
Created May 5, 2023 18:30 — forked from matusnovak/README.md
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix

matrix.org chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
[2023-03-20 14:11:00] local.ERROR: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database (SQL: update "users" set "updated_at" = 2023-03-20 14:11:00 where "id" = 1) {"view":{"view":"/htdocs/resources/views/layouts/sidebar.blade.php","data":[]},"userId":1,"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0): SQLSTATE[HY000]: General error: 8 attempt to write a readonly database (SQL: update \"users\" set \"updated_at\" = 2023-03-20 14:11:00 where \"id\" = 1) at /htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
[stacktrace]
#0 /htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\\Database\\Connection->runQueryCallback()
#1 /htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(577): Illuminate\\Database\\Connection->run()
#2 /htdocs/vendor/laravel/framework/src/Illuminate/Database/Connection.php(510): Illuminate\\Database\\Connection->affectingStatement()
#3 /htdocs/vendor/laravel/frame
@DunklerPhoenix
DunklerPhoenix / gist:9b32872e2b0cef17d65d4f50f33cdd46
Created March 14, 2023 21:47
Calibre - Test Container error
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
### Keybase proof
I hereby claim:
* I am dunklerphoenix on github.
* I am roguethorn (https://keybase.io/roguethorn) on keybase.
* I have a public key ASChllCO7i50coJXEC8iEbskbaXidROr-G7UVOLhtffCdAo
To claim this, I am signing this object: