Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active November 17, 2024 01:08
The introduction to Reactive Programming you've been missing
@ChengLong
ChengLong / site.conf
Last active June 6, 2016 06:04
Nginx HTTPS config with Let's Encrypt, HTTP/2 and HTTP redirect
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
server_name domain.com www.domain.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
ssl_session_timeout 1d;
@ChengLong
ChengLong / nginx.conf
Last active June 6, 2016 06:02
Secure and fast nginx.conf
user nginx;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
}