Skip to content

Instantly share code, notes, and snippets.

@rgoodie
rgoodie / vagrant-d8.sh
Last active August 29, 2015 14:16 — forked from alimac/vagrant-d8.sh
#!/bin/bash
# Install Drupal 8 Development Environment
# update apt
sudo apt-get update -y
# install development tools
sudo apt-get install curl git vim -y
@rgoodie
rgoodie / stop-vms.sh
Created August 5, 2014 13:10
A Bash script to stop all running instances of VMs under virtual box (and vagrant)
vboxmanage list runningvms | sed -r 's/.*\{(.*)\}/\1/' | xargs -L1 -I {} VBoxManage controlvm {} savestate
@rgoodie
rgoodie / new-drupal-dev-vm.sh
Last active March 22, 2018 23:47
A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm), augments configuration (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>.
# new drupal vagrant install
# A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm),
# augments config (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses
# include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>.
function newd {
if [ $2 == ]; then
echo 'USAGE: newd8 <version> <sitename>'