Skip to content

Instantly share code, notes, and snippets.

View mefellows's full-sized avatar

Matt Fellows mefellows

View GitHub Profile
@mefellows
mefellows / packer.json
Created June 19, 2015 06:58
Restart Windows Defect - Packer Community #54
{
"builders": [
{
"type": "virtualbox-ovf",
"communicator":"winrm",
"name":"win2008updates",
"source_path": "/Users/mfellows/Downloads/output-basebox-vbox/talentsearch-api-1.0.0.ovf",
"headless": false,
"boot_wait": "1m",
"winrm_username": "vagrant",
@mefellows
mefellows / docker-run.sh
Created August 6, 2015 04:52
Run arbitrary scripts that require Docker, within another Docker container
#!/usr/bin/env bash
set -e
abort()
{
echo "Docker: an error occurred. Exiting..." >&2
exit 1
}
script_path_required()
@mefellows
mefellows / tools.md
Last active August 30, 2022 22:40
Networking Tools - Cheat Sheet

*nix Networking Tools Cheat Sheet

## Network Performance

iperf (all)

Setup the server:

iperf -s
@mefellows
mefellows / Nginx.scala
Last active September 22, 2015 12:47
Nginx - DNSMasq, Docker, Gatling and Muxy
package au.com.onegeek.nginxperf
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
class Nginx extends Simulation {
val httpConf = http
.baseURL("http://api.foo.com")
@mefellows
mefellows / HelloApp.js
Last active January 12, 2016 22:58
MelbJS - Metrics on the front, data at the back
import bucky from 'bucky';
class HelloApp extends React.Component {
constructor(props) {
super(props);
bucky.send('helloapp.constructor', 2432.43434);
this.state = {
filterType: 'all'
};
@mefellows
mefellows / Dockerfile
Last active January 27, 2016 17:17
Dockerizing CI environments blog post
RUN apt-get update && apt-get install -y wget
RUN wget https://github.com/jwilder/dockerize/releases/download/v0.1.0/dockerize-linux-amd64-v0.1.0.tar.gz
RUN tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.1.0.tar.gz
@mefellows
mefellows / bootstrap.ps1
Created March 26, 2016 00:39
Bootstrap Vagrant and Rsync on Windows
Write-Host -ForegroundColor green "Bootstrapping machine"
Write-Host "Setting up package management and installing required packages for Dev."
#
# Install Choco (if not already installed) + required packages
#
if ( (Get-Command "choco" -errorAction SilentlyContinue) ) {
Write-Host "Chocolatey already installed. Skipping."
} else {
@mefellows
mefellows / foo.json
Created November 6, 2016 05:07
Pact output example (v2)
{
"consumer": {
"name": "MyConsumer"
},
"provider": {
"name": "MyProvider"
},
"interactions": [
{
"description": "Some name for the test",
@mefellows
mefellows / README.md
Created February 26, 2017 00:55
Pact Node #27 Gist

Repro for Issue #27

npm i
node index.js

Should produce something like: