Skip to content

Instantly share code, notes, and snippets.

View aaronott's full-sized avatar

Aaron Ott aaronott

  • Rule4
  • Thornton, CO
View GitHub Profile
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active April 7, 2024 13:53
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
anonymous
anonymous / gist:4402304
Created December 28, 2012 21:55
Download Drupal modules listed in a give text file.
#!/bin/bash
# Usage:
# ./download.sh allmodules.txt
#
# Assumes allmodules.txt is a newline-separated list of projects you want to
# download.
# @todo Error handling of any kind. :P I'm so optimistic. :P
# Versions to attempt to download, in order of preference.