View 0006_sumologic.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packages: | |
rpm: | |
SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64 | |
services: | |
sysvinit: | |
collector: | |
enabled: true | |
ensureRunning: true | |
files: |
View aws-deploy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# simple script for using eb deploy in a bash script | |
app=$(cat config/application.rb |grep -i "module" |awk '{ print tolower ($2) }' ) | |
current_date=$(date +"%Y%m%d-%T%Z") | |
current_user=$(whoami) | |
if [ ! -f .elasticbeanstalk/config.yml ]; then | |
echo "You need to run 'eb init' first!" | |
else |
View s3mysqlbackup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Basic variables | |
mysqlpass="########" | |
bucket="s3://#####-prod-data-####/######-#" | |
host="####-########-rds-platform-1.######.us-east-1.rds.amazonaws.com" | |
# Timestamp (sortable AND readable) | |
stamp=`date +"%s - %A %d %B %Y @ %H%M"` |
View gist:309d867d75d6667b35b2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Running a check on your DB creds" | |
mysql -u backup -p$mysqlpass -h $host -e "SHOW DATABASES;" &>/dev/null | |
rc=$?; if [[ $rc != 0 ]]; then echo "not working; check your creds" && exit $rc; fi |
NewerOlder