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 / Dockerfile
Last active April 28, 2017 02:47
cppapp rpi
FROM resin/rpi-raspbian:latest
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/*
@brandonsoto
brandonsoto / Vagrantfile
Created February 28, 2017 04:47
RHEL7.3 vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
required_plugins = %w(vagrant-share vagrant-registration)
plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin }
if not plugins_to_install.empty?
puts "Installing plugins: #{plugins_to_install.join(' ')}"
if system "vagrant plugin install #{plugins_to_install.join(' ')}"
exec "vagrant #{ARGV.join(' ')}"
@brandonsoto
brandonsoto / delete.sh
Last active February 27, 2017 03:53
Delete all docker images and containers on the system
#!/bin/bash
# Delete all containers
docker rm -f $(docker ps -a -q)
# Delete all images
docker rmi -f $(docker images -q)