Skip to content

Instantly share code, notes, and snippets.

View boldandbusted's full-sized avatar
:shipit:
ATP recycling

Jesse Adelman boldandbusted

:shipit:
ATP recycling
View GitHub Profile
@boldandbusted
boldandbusted / vagrant-prep.sh
Created March 10, 2018 03:27
Run this script before running 'vagrant up' to ensure everything is on a tmpfs aka a ramdisk (Linux-only)). #SaveYourSSD
#!/bin/bash
#lrwxrwxrwx 1 jesse jesse 22 Jan 17 13:00 .vagrant.d -> /dev/shm/vm/Vagrant.d/
#lrwxrwxrwx 1 jesse jesse 19 Jan 17 13:00 .vagrant -> /dev/shm/vm/Vagrant
#lrwxrwxrwx 1 jesse jesse 23 Jan 17 13:00 .VirtualBox -> /dev/shm/vm/VirtualBox/
[ -e /dev/shm/vm/Vagrant ] || mkdir -p /dev/shm/vm/Vagrant
[ -e /dev/shm/vm/Vagrant.d ] || mkdir -p /dev/shm/vm/Vagrant.d
[ -e /dev/shm/vm/VirtualBox ] || mkdir -p /dev/shm/vm/VirtualBox
[ -L ~/.vagrant.d ] || rm -rf ~/.vagrant.d; ln -s /dev/shm/vm/Vagrant.d ~/.vagrant.d
#!/bin/bash
# setting for proxy
export EC2_JVM_ARGS="-Dhttp.proxySet=true -DproxyHost=YOURPROXYHOST -DproxyPort=YOURPROXYPORT"
export SERVICE_JVM_ARGS=${EC2_JVM_ARGS}
# setting for cloud watch
export AWS_CREDENTIAL_FILE=$AWS_CLOUDWATCH_HOME/credentials
export AWS_CLOUDWATCH_URL=https://monitoring.amazonaws.com
export PATH=$AWS_CLOUDWATCH_HOME/bin:$PATH