Skip to content

Instantly share code, notes, and snippets.

@robinwl
robinwl / Vagrantfile
Last active August 29, 2015 14:13
Vagrant-docker skel
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "robin/trusty64"
config.vm.hostname = "docker"
config.vm.provision "shell", inline: $shell
if Vagrant.has_plugin?("vagrant-vbguest") then
@robinwl
robinwl / vhost.conf
Last active August 29, 2015 14:13
nginx vhost template
server {
##
# Basic config
##
listen 80;
listen 443 ssl spdy;
server_name _;
@robinwl
robinwl / Vagrantfile
Created January 16, 2015 19:16
Vagrantfile Trusty64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "robin/trusty64"
config.vm.hostname = "trusty64"
config.vm.provision "shell", inline: $shell
if Vagrant.has_plugin?("vagrant-vbguest") then
config.vbguest.auto_update = false
end
@robinwl
robinwl / interfaces
Created December 25, 2014 18:16
Ubuntu network interfaces virtualbox
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
@robinwl
robinwl / Vagrantfile
Created December 19, 2014 23:12
Vagrant docker fig
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "robin/trusty64"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provision "shell", inline: $shell
if Vagrant.has_plugin?("vagrant-vbguest") then
config.vbguest.auto_update = false
@robinwl
robinwl / provision-adnasa.sh
Last active August 29, 2015 14:07
Vagrant shell provisioner that installs RVM, Ruby, Bundler, Node.js, redis & MongoDB
# Set non-interactive mode
export DEBIAN_FRONTEND=noninteractive
# Update package mirrors and update base system
apt-get update
apt-get -y dist-upgrade
# Install packages
apt-get -y install git tree curl
@robinwl
robinwl / provision.sh
Last active July 3, 2017 13:33
Vagrant shell provisioner for creating a LAMP-stack
##
# Shell provisioner for LAMP
# Tested on Ubuntu 12.04
##
# Detect environment
source /etc/os-release
# Set non-interactive mode
export DEBIAN_FRONTEND=noninteractive