Why would you do this?
- You own your bare metal infrastructure.
- You want to take advantage of Kubernetes.
- You do not wish to migrate your application to the cloud
Why it will not always suit your needs?
services: | |
my-container: | |
networks: | |
# Attach the service to the traefik-public network | |
traefik-public: | |
deploy: | |
labels: | |
# Enable Traefik for this service | |
- traefik.enable=true | |
- traefik.http.routers.my-container.rule=Host(`example.com`) |
/* | |
Convert an ArrayBuffer into a string | |
from https://developer.chrome.com/blog/how-to-convert-arraybuffer-to-and-from-string/ | |
*/ | |
function ab2str(buf) { | |
return String.fromCharCode.apply(null, new Uint8Array(buf)); | |
} |
The SSL/TLS store location is not standardised across operating systems or even Linux distros. It could be anywhere in:
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...
Each major task has its own gist, this is to help with maitainability long term.
function consoleWithNoSource(...params) { | |
setTimeout(console.log.bind(console, ...params)); | |
} | |
consoleWithNoSource("Helloo....!") |
# run in the terminal, then set as ssl_dhparam in nginx.conf | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096 |
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.