Skip to content

Instantly share code, notes, and snippets.

View philwinder's full-sized avatar

Phil Winder philwinder

View GitHub Profile
# Introduction
# This is an example properties file to run a dockerized version of kibana.
# All of the properties in the mesos-starter project are overridable.
# Required application name for Spring
spring.application.name=kibana-docker
# Mesos framework name
mesos.framework.name=kibana-docker
@philwinder
philwinder / kibana.yml
Last active March 10, 2016 16:01
Example Kibana yml file for testing
kibana.defaultAppId: "dashboard"
logging.verbose: true
@philwinder
philwinder / elasticsearch.yml
Last active March 3, 2016 10:08
Test url based yml file for Mesos ES project
index.auto_expand_replicas: false
path.plugins: /tmp/plugins
network.publish_host: 0.0.0.0
@philwinder
philwinder / .zshrc
Last active January 22, 2016 14:05
My oh-my-zsh configuration
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gianu"
# Uncomment the following line to use case-sensitive completion.
@philwinder
philwinder / dcosDemo.sh
Last active August 29, 2015 14:24
Shell script for Container Solutions Software Circus Meetup
#!/bin/bash
################
# Introduction #
# This script is a demo of DCOS for the Container Solutions hosted Software Circus meetup.
# Don't run this as a script, it expects the DCOS CLI installed. Rather you should work
# through the examples one by one.
# Prerequisites:
# - A working DCOS cluster on AWS. See https://mesosphere.com/amazon/setup/
# Please make sure you enter your master AWS IP below.
@philwinder
philwinder / kibana4
Created May 20, 2015 10:06
Kibana4 init.d script for SLES 11 SP3
#!/bin/sh
### BEGIN INIT INFO
# Provides: kibana4
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
@philwinder
philwinder / authorize.lua
Last active February 3, 2022 07:36
IVZ: Nginx config for using Lua as the authentication module. You must install nginx with lua support. See "openresty" for linux distros or the vagrant bootstrap shell script.
--[[
Provides custom authorization for nginx.
See the `nginx_authorize_by_lua.conf` for the Nginx config. This lua file is referenced in the config
See testWebserverAccess.sh for unit tests.
To Run nginx (make sure you have the lua, config and htpasswd file):
$ /usr/local/openresty/nginx/sbin/nginx -c /etc/nginx/conf/nginx_authorize_by_lua.conf
Logs are available at: /usr/local/openresty/nginx/logs/lua.log
To write to the log:
@philwinder
philwinder / InstallDroneOnAWS
Last active May 23, 2018 11:01
Script to install Drone on an Amazon EC2 instance
#!/bin/bash
# First create a new EC2 ubuntu instance on the free tier.
# Ensure that port 22 (SSH) and 80 (HTTP) are open to the public.
# SSH into machine. Run these commands.
echo “Verify that docker is installed, if not install ”
command -v docker >/dev/null 2>&1 || { echo >&2 "docker isn’t installed. Installing"; wget -qO- https://get.docker.com/ | sh; }
wget downloads.drone.io/master/drone.deb
@philwinder
philwinder / Vagrantfile
Last active August 29, 2015 14:21 — forked from amadeoas/Vagrantfile
Drone installation vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at