Skip to content

Instantly share code, notes, and snippets.

@kekru
kekru / 01nginx-tls-sni.md
Last active June 19, 2024 17:24
nginx TLS SNI routing, based on subdomain pattern

Nginx TLS SNI routing, based on subdomain pattern

Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.

prerequisites

  • at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
  • check nginx -V for the following:
    ...
    TLS SNI support enabled
@mitakeck
mitakeck / Free OREILLY
Created February 19, 2017 05:14
Free OREILLY
Free OREILLY
## Data Ebooks
http://www.oreilly.com/data/free/files/mapping-big-data.epub
http://www.oreilly.com/data/free/files/business-models-for-the-data-economy.epub
http://www.oreilly.com/data/free/files/2016-data-science-salary-survey.epub
http://www.oreilly.com/data/free/files/embedding-analytics-in-modern-applications.epub
http://www.oreilly.com/data/free/files/data-science-microsoft-azure-ml-python.epub
http://www.oreilly.com/data/free/files/self-service-analytics.epub
@cure53
cure53 / wasm.md
Last active October 17, 2023 00:16
Calling alert from WASM

Calling alert from WebAssembly (WASM)

This very simple and minimal tutorial documents in a few easy steps how to play with WebAssembly (WASM) and get first results within minutes.

While the code below is mostly useless, it will show, how to call the alert function from within a WASM file and thus demonstrate how to import and export DOM objects.

Of course, this exercise has no real use. It is just meant to show, that getting started with WASM isn't hard. And there is no need for a complex build-chain, tons of tools or a dedicated VMs. Just use a browser, one online tool and that's it.

And Now?