Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Pandiyaraja Ramamoorthy pontiyaraja

🎯
Focusing
View GitHub Profile
@pontiyaraja
pontiyaraja / Dockerfile - from ubuntu image
Last active Nov 4, 2016
Dockerfile to run a web application in a docker image nginx server. This file runs from an ubuntu tag
View Dockerfile - from ubuntu image
FROM ubuntu:trusty
MAINTAINER Pandiyaraja Ramamoorthy <ramamoorthypandiyaraja@gmail.com.com>
RUN apt-get update && \
apt-get install -y nginx && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# install node
@rb16
rb16 / GoLang setup
Last active Jun 26, 2018
GOlang Setup Environment Linux and OS X
View GoLang setup
#Set these variables in .bash_profile (OS X) file
export GOPATH=$HOME/workspace
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@mjohnsullivan
mjohnsullivan / parse_json.go
Created Dec 14, 2015
Parse JSON objects with arbitrary key names in Go using interfaces and type assertions
View parse_json.go
// 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"
)
@dstroot
dstroot / install-redis.sh
Created May 23, 2012
Install Redis on Amazon EC2 AMI
View install-redis.sh
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
You can’t perform that action at this time.