Skip to content

Instantly share code, notes, and snippets.

View brandonsoto's full-sized avatar
🚙

Brandon Soto brandonsoto

🚙
  • Seattle, WA
View GitHub Profile
@brandonsoto
brandonsoto / Vagrantfile
Created August 10, 2017 03:27
Multi-machine VMware 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
@brandonsoto
brandonsoto / Vagrantfile
Created August 4, 2017 05:53
vagrantfile with serial port and private network
# -*- 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
@brandonsoto
brandonsoto / generate_coverage.sh
Last active July 19, 2017 03:39
file that will generate test coverage for a given test
#!/bin/bash
# variables
PROJECT_BUILD_DIR=/vagrant/project/cmake-debug-build
DEVTOOLSET_DIR=/opt/rh/devtoolset-3
OUTPUT_DIR=/$HOME/html-out
TARGET=$1
TRACEFILE=$TARGET.info.cleaned
echo -e "Creating coverage for target \e[1m\"$1\"\e[0m..."
@brandonsoto
brandonsoto / Dockerfile
Last active May 27, 2017 08:23
opencv-python
FROM ubuntu:16.04
MAINTAINER Brandon Soto <brandon.soto09@gmail.com>
ADD https://github.com/opencv/opencv_contrib/archive/3.2.0.tar.gz /tmp/opencv_contib-3.2.0.tar.gz
ADD https://github.com/opencv/opencv/archive/3.2.0.tar.gz /tmp/opencv-3.2.0.tar.gz
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y tar build-essential \
@brandonsoto
brandonsoto / Dockerfile
Created April 27, 2017 00:48
cppzmq:dev
FROM brandonsoto/cppapp:latest
MAINTAINER Brandon Soto (brandon.soto09@gmail.com)
ADD https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz /tmp
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp /usr/include
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq_addon.hpp /usr/include
RUN \
apt-get update && apt-get install -y gdb valgrind && \
cd /tmp && \
@brandonsoto
brandonsoto / Dockerfile
Last active May 31, 2017 06:05
Docker container with Ansible
FROM ubuntu:16.04
MAINTAINER Brandon Soto (brandon.soto09@gmail.com)
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& apt-add-repository -y ppa:ansible/ansible \
&& apt-get update \
&& apt-get install -y ansible \
&& rm -rvf /var/lib/apt/lists/*
@brandonsoto
brandonsoto / .travis.yml
Created April 22, 2017 07:53
Auto building docker images with Travis
sudo: required
services:
- docker
language: bash
script:
- docker build -f Dockerfile-server -t brandonsoto/vsserver:latest .
# prepare qemu
@brandonsoto
brandonsoto / Dockerfile
Last active April 25, 2017 03:02
cppzmq rpi
FROM brandonsoto/cppapp:rpi
MAINTAINER Brandon Soto (brandon.soto09@gmail.com)
ADD https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz /tmp
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp /usr/include
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq_addon.hpp /usr/include
RUN \
cd /tmp && \
tar xvf zeromq-4.2.2.tar.gz && \
@brandonsoto
brandonsoto / Dockerfile
Last active April 27, 2017 00:24
cppzmq ubuntu
FROM brandonsoto/cppapp
MAINTAINER Brandon Soto (brandon.soto09@gmail.com)
ADD https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz /tmp
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp /usr/include
ADD https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq_addon.hpp /usr/include
RUN \
cd /tmp && \
tar xvf zeromq-4.2.2.tar.gz && \
@brandonsoto
brandonsoto / Dockerfile
Last active April 28, 2017 02:38
cppapp ubuntu
FROM ubuntu:16.04
MAINTAINER Brandon Soto (brandon.soto09@gmail.com)
RUN \
apt-get -y -qq update && \
apt-get -y -qq install cmake build-essential git && \
rm -rf /var/lib/apt/lists/*