Skip to content

Instantly share code, notes, and snippets.

View robdyke's full-sized avatar

Rob Dyke robdyke

View GitHub Profile
@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=""
@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 / __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 / 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 / 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 / custom-queries.php
Created December 13, 2016 00:00 — forked from carlodaniele/custom-queries.php
An example plugin showing how to add custom query vars, rewrite tags and rewrite rules to WordPress
<?php
/**
* @package Custom_queries
* @version 1.0
*/
/*
Plugin Name: Custom queries
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele

Keybase proof

I hereby claim:

  • I am robdyke on github.
  • I am robdyke (https://keybase.io/robdyke) on keybase.
  • I have a public key whose fingerprint is 510A F75D 4696 96AC 18EC 457C 6D64 8741 77FE 7AA1

To claim this, I am signing this object:

@robdyke
robdyke / dash-to-panel.conf
Created March 2, 2017 01:38
dash-to-panel gnome settings
[dash-to-panel]
panel-position='BOTTOM'
show-appmenu=false
animate-show-apps=false
panel-size=32
show-activities-button=false
show-show-apps-button=false
@robdyke
robdyke / nhsboxes.md
Last active April 26, 2017 22:06
NHSbuntu - Vagrant, Virtualbox and seamless RDP to Windows 7

NHSbuntu

Open a terminal, create our working directory and install VirtualBox, Vagrant, Remmina

mkdir -p nhsboxes/windows7
cd nhsboxes
wget http://j.mp/2p6Z6pK -O install.sh
chmod +x install.sh
./install.sh
@robdyke
robdyke / hastebin.sh
Last active July 12, 2017 20:20 — forked from flores/hastebin.sh
hastebin shell client
#!/bin/bash
server='hastebin.com';
usage="$0 pastes into $server
usage: $0 something
example: '$0 pie' or 'ps aufx |$0'"
if [ -z $1 ]; then
str=`cat /dev/stdin`;