Skip to content

Instantly share code, notes, and snippets.

View alextanhongpin's full-sized avatar

Alex Tan Hong Pin alextanhongpin

View GitHub Profile
@alextanhongpin
alextanhongpin / nginxoptimization.config
Created February 25, 2018 12:17 — forked from wearhere/nginxoptimization.config
Optimized nginx configuration for an AWS Elastic Beanstalk environment using an Application Load Balancer.
files:
"/opt/elasticbeanstalk/#etc#nginx#optimized-nginx.conf":
mode: "000644"
owner: root
group: root
encoding: plain
content: |
# Elastic Beanstalk Managed
# Elastic Beanstalk managed configuration file
@alextanhongpin
alextanhongpin / localStorage.html
Created July 12, 2017 12:39 — forked from sagar-ganatra/localStorage.html
Local storage event listeners
<!DOCTYPE html>
<html>
<head>
<title>localStorage Test</title>
<script type="text/javascript" >
var count = 0;
var storageHandler = function () {
alert('storage event 1');
};
@alextanhongpin
alextanhongpin / main.go
Created February 14, 2017 14:52 — forked from nmerouze/main.go
JSON-API with Go and MongoDB: Final Part
package main
import (
"encoding/json"
"log"
"net/http"
"reflect"
"time"
"github.com/gorilla/context"