This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pretty printing styles. Used with prettify.js. */ | |
/* SPAN elements with the classes below are added by prettyprint. */ | |
.pln { color: #000; font-size: 80% } /* plain text */ | |
@media screen { | |
.str { color: #080; font-size: 80% } /* string content */ | |
.kwd { color: #008; font-size: 80% } /* a keyword */ | |
.com { color: #800; font-size: 80% } /* a comment */ | |
.typ { color: #606; font-size: 80% } /* a type name */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// # Ghost Configuration | |
// Setup your Ghost install for various environments | |
var path = require('path'), | |
config; | |
config = { | |
// ### Development **(default)** | |
development: { | |
// The url to use when providing links to the site, E.g. in RSS and email. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Which base image to build FROM? | |
FROM ubuntu | |
#What to RUN for the new build? | |
#Adding apt tools | |
RUN apt-get install -y python-software-properties | |
#Adding the nodejs ppa's | |
RUN add-apt-repository -y ppa:chris-lea/node.js | |
#001: Fixing broken dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
################### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
################### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################# | |
################### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from optparse import OptionParser | |
from time import sleep | |
import requests | |
def main(): | |
parser = OptionParser(usage="usage %prog [options]", version="%prog 1.0") | |
parser.add_option("-d", "--domain", | |
action = "store", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Redis In-Memory Data Store | |
After=network.target | |
[Service] | |
User=redis | |
Group=redis | |
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf | |
ExecStop=/usr/local/bin/redis-cli shutdown | |
Restart=always |