This file contains hidden or 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
server.modules += ( "mod_auth" ) | |
server.modules += ( "mod_proxy" ) | |
accesslog.filename = "/var/log/lighttpd/logs-access.log" | |
# server.bind = "0.0.0.0" | |
$SERVER["socket"] == ":80" { | |
$HTTP["remoteip"] =~ "^10\.10\.10\." { | |
# hosts in the 10.10.10.10 range can access :80/api/ subroot | |
$HTTP["url"] !~ "^/api/" { |
This file contains hidden or 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
// benchmark/object-stream-throughput.js | |
// | |
// Shows performance of pipe()ing new streams in object mode | |
// through Transform streams. | |
var OBJECTS_PER_B = 12 / 1024; // I get 12 of my objects per KB of input XML | |
var SOURCE_WRITE_SIZE = 64*1024; | |
var common = require('./common'); | |
var net = require('net'); |
This file contains hidden or 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
node_modules |
This file contains hidden or 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 stackbrew/ubuntu:precise | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 |
This file contains hidden or 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
'use strict'; | |
exports.register = function (plugin, options, next) { | |
function addRoutes(server) { | |
var serverPluginSettings = server.settings.plugins || {}, | |
serverSpecificSettings = serverPluginSettings.routify || {}, | |
routes = serverSpecificSettings.routes || options.routes; | |
if (routes) { | |
server.route(routes); |
This file contains hidden or 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
# OpenTSDB build container | |
# Usage: | |
# docker build -t=opentsdb-build . | |
# docker run -name=opentsdb-building opentsdb-build ./build.sh debian | |
# docker commit opentsdb-building opentsdb-rebuild | |
# docker run -rm -v=$(pwd):/tmp/results opentsdb-rebuild cp /opt/opentsdb/build/opentsdb-2.0.0/opentsdb-2.0.0_all.deb /tmp/results | |
FROM stackbrew/ubuntu:precise | |
MAINTAINER Garth Kidd <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN locale-gen en_US.UTF-8 |
This file contains hidden or 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
# Politely listens on the nominated TCP ports. | |
FROM stackbrew/ubuntu | |
ADD multi-listen /usr/local/bin/multi-listen | |
RUN chmod a+x /usr/local/bin/multi-listen | |
ENTRYPOINT ["/usr/local/bin/multi-listen"] | |
CMD ["80"] |
This file contains hidden or 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
# Matryoshka Docker | |
FROM stackbrew/ubuntu:12.04 | |
MAINTAINER Garth Kidd <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A88D21E9 | |
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list | |
RUN echo 'deb http://security.ubuntu.com/ubuntu precise-security main restricted' >> /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https curl |
This file contains hidden or 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/bash | |
set -e # exit on errors | |
if [ $(uname) = Darwin ]; then | |
cat <<EOF0 | |
This script cannot work on OS X because your OS X paths don't exist in the | |
'boot2docker' virtual machine. | |
EOF0 | |
exit 1 | |
fi |
This file contains hidden or 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 stackbrew/ubuntu:precise | |
MAINTAINER Garth Kidd <[email protected]> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN locale-gen en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
RUN dpkg-divert --local --rename /usr/bin/ischroot && ln -sf /bin/true /usr/bin/ischroot | |
RUN apt-get update | |
RUN apt-get install -y openjdk-6-jdk curl | |
RUN cd /opt && curl -OL https://download.elasticsearch.org/logstash/logstash/logstash-1.3.3-flatjar.jar | |
ADD logstash-noconfig /usr/local/bin/ |