Skip to content

Instantly share code, notes, and snippets.

:shipit:
ATP recycling

Jesse Adelman boldandbusted

:shipit:
ATP recycling
View GitHub Profile
@boldandbusted
boldandbusted / vagrant-prep.sh
Created Mar 10, 2018
Run this script before running 'vagrant up' to ensure everything is on a tmpfs aka a ramdisk (Linux-only)). #SaveYourSSD
View vagrant-prep.sh
#!/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
View How_to_use_the_CloudWatch_API_about_getting_the_JVM_info_with_proxy.sh
#!/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
You can’t perform that action at this time.