Skip to content

Instantly share code, notes, and snippets.

View danielabar's full-sized avatar

Daniela Baron danielabar

View GitHub Profile
function reportError(error, message) {
message = message || '';
console.error(
'ERROR: ' + message + ' [' + error.toString() + ']\n' +
'\nName:\t\t' + (error.name || '-') +
'\nMessage:\t' + (error.message || '-') +
'\nFile:\t\t\t' + (error.fileName || '-') +
'\nSource:\t\t' + ((error.toSource && error.toSource()) || '-') +
'\nLine #:\t\t' + (error.lineNumber || '-') +
'\nColumn #:\t' + (error.columnNumber || '-') +
@danielabar
danielabar / vagrant.txt
Last active October 23, 2015 00:18
Course notes and commands from TutsPlus: Virtual Machines with Vagrant and Puppet
# https://tutsplus.com/course/virtual-machines-with-vagrant-and-puppet/
# Download and install VirtualBox https://www.virtualbox.org/wiki/Downloads
# Download and install Vagrant http://www.vagrantup.com/downloads.html
# For this lesson, we'll be using VirtualBox as the provider
# add a new box to collection of vagrant boxes
# vagrant box add <name> <location>
vagrant box add precise32 http://files.vagrantup.com/precise32.box