Skip to content

Instantly share code, notes, and snippets.

View samof76's full-sized avatar
🐒
Swinging branches

Samuel Vijaykumar M samof76

🐒
Swinging branches
View GitHub Profile
@samof76
samof76 / sources.list
Created April 3, 2014 11:19
Apt sources list file
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
@samof76
samof76 / sources.list
Created June 3, 2014 07:58
Custome Ubuntu Apt Sources File
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://in.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
@samof76
samof76 / sources.list
Created July 25, 2014 07:31
Ubuntu sources.list
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
FROM ubuntu:12.04
#ADD https://gist.githubusercontent.com/samof76/4d15d92910b6cec8efae/raw/bcba158b46e82b9625d1883c6bd9567a96b6ac86/sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y curl lsb-release
RUN curl http://apt.basho.com/gpg/basho.apt.key | apt-key add -
RUN bash -c "echo deb http://apt.basho.com $(lsb_release -sc) main > /etc/apt/sources.list.d/basho.list"
RUN apt-get update
RUN apt-get install -y riak
@samof76
samof76 / redis-sentinel.sh
Created August 7, 2015 12:50
Redis sentinel init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-sentinel
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-sentinel - Failover for Redis
@samof76
samof76 / createdir.sh
Created June 3, 2011 10:29
Erlang Install Steps
sudo mkdir /opt/erlang
sudo chown sam:sam -R /opt/erlang
@samof76
samof76 / workingdircreate.sh
Created June 3, 2011 10:41
Erlang Install - Creation of Working directory
$ sudo mkdir -p /opt/erlang
$ sudo chown sam:sam -R /opt/erlang
@samof76
samof76 / downloadtarball.sh
Created June 3, 2011 10:42
Erlang Install - Download Tarball
$ cd /opt/erlang
$ wget http://www.erlang.org/download/otp_src_R14B02.tar.gz
@samof76
samof76 / extract.sh
Created June 3, 2011 10:44
Erlang Install - Extract Tarball
$ tar -xzvf otp_src_R14B02.tar.gz
@samof76
samof76 / install.sh
Created June 3, 2011 10:46
Erlang Install - Install
$ mkdir R14B02
$ cd otp_src_R14B02
$ ./configure --prefix=/opt/erlang/R14B02
$ make ; make instal