Skip to content

Instantly share code, notes, and snippets.

Dan's quick start build for Craft project

  1. Download craft from http://buildwithcraft.com/docs/installing
  2. Use puphpet.com to generate a new server build:
    • Shared Folder / Folder Source: ../
    • System Packages: htop, curl, vim (because I like having them)
    • Nginx Host
      • Server Name: craft-demo.dev
      • Server Alias: if not needed
  • Document Root: /var/www/public
@dholmes
dholmes / sync-vagrant-to-host.md
Last active April 16, 2018 21:20
Syncing select files from Vagrant to Host when using gatling-rsync-auto
  1. Be sure to stop gatling-rsync-auto so it doesn't delete whatever you are trying to generate
  2. Run whatever file-generating thing inside the VM
scp -rv -P 2222  -i /Users/dholmes/Projects/someapp/config/keys/private -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null vagrant@127.0.0.1:/vagrant/app/build/coverage/ app/build/coverage/
@dholmes
dholmes / Vagrantfile-rsync-or-nfs.txt
Created May 9, 2018 15:12
Just a snip-it of a Vagrantfile that could be helpful for using either TCP nfs or rsync with the gatling-rsync plugin
# Mounts
(settings['volumes'] || {'.' => '/vagrant'}).each do |src, dst|
if Vagrant.has_plugin?("vagrant-gatling-rsync")
config.vm.synced_folder src, dst, type: "rsync", rsync__exclude: [".git/", ".idea/"], rsync__verbose: true
else
config.vm.synced_folder src, dst, type: "nfs",  mount_options: ['rw', 'vers=3', 'tcp'], linux__nfs_options: ['rw','no_subtree_check','all_squash','async']
end
end

Keybase proof

I hereby claim:

  • I am dholmes on github.
  • I am dholmes (https://keybase.io/dholmes) on keybase.
  • I have a public key whose fingerprint is D560 F840 7AEE F69D F136 0A8A FEFF 9EE7 DDF2 1183

To claim this, I am signing this object: