Add yourself to the docker
group to be able to run containers as non-root (see Post-install steps for Linux).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <boost/uuid/uuid.hpp> | |
#include <boost/uuid/uuid_generators.hpp> | |
#include <boost/uuid/uuid_io.hpp> | |
/** | |
* This snippet implements basic string conversion support for `boost::uuids::uuid` | |
* in libpqxx. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <csignal> | |
#include <thread> | |
#include <chrono> | |
#include <string_view> | |
#include <fmt/core.h> | |
#include <fmt/color.h> | |
#include <mosquitto.h> | |
#include <openssl/ssl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See https://tomlankhorst.nl/unresponsive-usb-unbind-bind-linux | |
DEV=${1:-0000:06:00.3} | |
echo $DEV | sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind | |
sleep 1 | |
echo $DEV | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Used on nginx/1.15.5 | |
# https://tomlankhorst.nl/secure-nginx-docker-container-with-lets-encrypt/ | |
# | |
# see: https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=nginx-1.15.5a&openssl=1.0.1e&hsts=yes&profile=modern | |
# Oldest compatible clients: Firefox 27, Chrome 30, IE 11 on Windows 7, Edge, Opera 17, Safari 9, Android 5.0, and Java 8 | |
server { | |
listen 80 default_server; | |
root /application/public/; |
OlderNewer