Skip to content

Instantly share code, notes, and snippets.

View OscarYuen's full-sized avatar
💭
I may be slow to respond.

Oscar Yuen OscarYuen

💭
I may be slow to respond.
  • Hong Kong
View GitHub Profile
@kostanovych
kostanovych / main.go
Created October 17, 2018 22:25
Golang long polling example
package main
import (
"fmt"
"net/http"
"time"
)
func longOperation(ch chan<- string) {
// Simulate long operation.
@miguelmota
miguelmota / setup.config
Last active July 26, 2021 15:42
Elastic Beanstalk NGINX rewrite http to https using .ebextensions
files:
"/etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf":
mode: "000755"
owner: root
group: root
content: |
server {
listen 80;
gzip on;