Skip to content

Instantly share code, notes, and snippets.

@pontiyaraja
pontiyaraja / Dockerfile - from nginx tag
Last active November 4, 2016 09:34
Dockerfile to run a web application in a docker image nginx server. This file runs from a nginx tag
FROM nginx:latest
MAINTAINER Pandiyaraja Ramamoorthy <pandiyarajaramamoorthy@gmail.com>
# install node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
@pontiyaraja
pontiyaraja / parse_json.go
Created July 12, 2019 06:45 — forked from mjohnsullivan/parse_json.go
Parse JSON objects with arbitrary key names in Go using interfaces and type assertions
// Parsing arbitrary JSON using interfaces in Go
// Demonstrates how to parse JSON with abritrary key names
// See https://blog.golang.org/json-and-go for more info on generic JSON parsing
package main
import (
"encoding/json"
"fmt"
)