Skip to content

Instantly share code, notes, and snippets.

View JoryTony's full-sized avatar

Anthony Chiboucas JoryTony

  • Jory
  • Portland, OR
View GitHub Profile
@JoryTony
JoryTony / datadog.config
Created April 20, 2016 21:45
EB install and configure datadog
container_commands:
90install_datadog:
command: |
yum -y makecache; yum -y install datadog-agent; /etc/init.d/datadog-agent stop
91setup_datadog:
test: '[ ! -e /etc/dd-agent/datadog.conf ]'
command: |
sh -c "sed 's/api_key:.*/api_key: 3313a3949fc7419c9da373853ecf9025/' /etc/dd-agent/datadog.conf.example > /etc/dd-agent/datadog.conf"
files:
@JoryTony
JoryTony / datadog_hooks.config
Created April 20, 2016 21:44
EB pre and post deployment for Datadog
container_commands:
02mkdir_appdeploy_post:
test: '[ ! -d /opt/elasticbeanstalk/hooks/appdeploy/post ]'
command: |
mkdir /opt/elasticbeanstalk/hooks/appdeploy/post
02mkdir_configdeploy_post:
test: '[ ! -d /opt/elasticbeanstalk/hooks/configdeploy/post ]'
command: |
mkdir /opt/elasticbeanstalk/hooks/configdeploy/post
10appdeploy_pre_stop:
@JoryTony
JoryTony / mount bind
Last active December 30, 2015 08:15
NIX ex: forced directory replacements (mount bind)
# This is only meant as an example.
# If you are intending a permanent patch, you should just fix the directory structure.
# This tool is primarily for when alterations to the existing tree are impossible, or prohibitively demanding.
# Prep example folders and files
cd ~
mkdir bindTest
mkdir bindTest2
touch bindTest/file
touch bindTest2/file2