Skip to content

Instantly share code, notes, and snippets.

View robdyke's full-sized avatar

Rob Dyke robdyke

View GitHub Profile
@robdyke
robdyke / 1 nginx-railo.conf
Created October 28, 2016 14:25 — forked from igal-getrailo/1 nginx-railo.conf
this is a reverse-proxy connector that connects nginx to Railo. the files in this example assume that they are located in the same folder as the nginx executable file (i.e. nginx.exe on Windows).the main conf file is nginx-railo.conf which should be passed to nginx as the config file, e.g. nginx -c nginx-railo.confit includes other config files …
#### this is the main config file for nginx, to specify it from the command line, use the -c switch, e.g
#### nginx.exe -c nginx-railo.conf
##** if connecting to Tomcat, use Tomcat's RemoteIpValve to resolve CGI.REMOTE_ADDR, CGI.SERVER_NAME, and CGI.SERVER_PORT_SECURE
##** <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto" remoteIpHeader="X-Forwarded-For" protocolHeaderHttpsValue="https" />
#user nobody;
#pid logs/nginx.pid;
@robdyke
robdyke / __readme.md
Created August 12, 2016 21:11 — forked from maxivak/__readme.md
Building Docker image with Packer and provisioning with Ansible

Building Docker image with Packer and provisioning with Ansible

Overview

Packer

  • Packer is used to build image from a base image, perform provisions and store (commit) the final image.

  • We use provisioners and Packer templates to do the actual work to create the final image.

  • We use Ansible for provisioning.

@robdyke
robdyke / parse-options.sh
Created July 22, 2016 18:44 — forked from cosimo/parse-options.sh
Example of how to parse options with bash/getopt
#!/bin/bash
#
# Example of how to parse short/long options with 'getopt'
#
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"`
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
echo "$OPTS"
@robdyke
robdyke / conv-ova4vmx.py
Last active October 24, 2016 04:26 — forked from eshizhan/conv2vmx-ovf.py
script to convert VBox .ova export for import to VMWare ESXi
#!/usr/bin/env python
# Neova Health
# Helper script to convert VBox .ova export for import to VMWare ESXi
# usage:
# conv-ova4vmx.py some-vbox-export.ova
# forked from : https://gist.github.com/eshizhan/6650285
import sys
import tarfile
@robdyke
robdyke / deployer.sh
Last active August 29, 2015 14:10 — forked from dulichan/deployer.sh
PRODUCT_HOME="$1"
IOS_CERTS="$2"
IP="$3"
PRODUCT_CONF="$4"
CONFIG_FILE="./openssl_custom.cnf"
TEMP_FOLDER="./temp"
PUSH_CERT="`echo $IOS_CERTS`pushcert.pfx"
PUSH_PASS=""
MDM_CERT="`echo $IOS_CERTS`PlainCert.pfx"
MDM_PASS=""