This file contains hidden or 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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAccessToSpecificFoldersAndObjects", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"arn:aws:iam::111111111111:user/[iam-username]", | |
"arn:aws:iam::222222222222:root" |
This file contains hidden or 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
docker run -d \ | |
--rm \ | |
--name rabbitmq \ | |
--hostname rabbitmq \ | |
--memory="1g" \ | |
--memory-reservation="512m" \ | |
--cpus="1.0" \ | |
-p 5672:5672 \ | |
-p 15672:15672 \ | |
rabbitmq:3-management |
This file contains hidden or 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
docker run -d \ | |
--rm \ | |
--name mongodb44 \ | |
--hostname mongodb \ | |
--memory="2g" \ | |
--memory-reservation="512m" \ | |
--cpus="1.0" \ | |
-v /local/storage/path/mongodata:/data/db \ | |
-p 27017:27017 \ | |
mongo:4.4 |
This file contains hidden or 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
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36 | |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko | |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 | |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9 | |
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4 | |
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36 | |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240 | |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) |
This file contains hidden or 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
a4b.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com | |
apigateway.amazonaws.com | |
application-autoscaling.amazonaws.com | |
appstream.application-autoscaling.amazonaws.com | |
appsync.amazonaws.com |
This file contains hidden or 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 | |
ServiceSystemName="mysql" | |
ServiceFriendlyName="MySQL" | |
SQLThreadStatus=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G" | grep "Slave_SQL_Running:" | awk '{ print $2 }') | |
IOThreadStatus=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G" | grep "Slave_IO_Running:" | awk '{ print $2 }') | |
LagStatus=$(/usr/bin/mysql -e "SHOW SLAVE STATUS\G"| grep "Seconds_Behind_Master:" | awk '{ print $2 }') | |
LagStatus=$(($LagStatus+0)) | |
ServiceStatusFile="ServiceStatus.txt" | |
ServiceStatusValue="$(<$ServiceStatusFile)" |
This file contains hidden or 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 | |
ServerName=$HOSTNAME | |
function help { | |
programName=$0 | |
echo -e "" | |
echo -e "SCRIPT DETAILS" | |
echo -e "Use script to post messages to a specific Slack channel\n" | |
echo -e "SCRIPT USAGE" |
This file contains hidden or 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
global | |
maxconn 10000 | |
stats socket /var/run/haproxy.stat mode 600 level admin | |
log 127.0.0.1 local2 | |
tune.ssl.default-dh-param 2048 | |
chroot /var/empty | |
daemon | |
frontend public | |
bind *:8181 name clear |
This file contains hidden or 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
upstream dummy_domain_com { | |
# HAProxy # | |
server 10.0.0.1:8181; | |
} | |
proxy_cache_path /mnt/nginx/cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=256m; | |
server { |
This file contains hidden or 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
## | |
## Open Applications ## | |
## | |
59 5 * * * printf '3\n[USERNAME]\n[PASSWORD]\ny' | /opt/cisco/anyconnect/bin/vpn -s connect [VPN-HOSTNAME] > /dev/null 2>&1 | |
0 6 * * * osascript -e 'open app "Slack"' > /dev/null 2>&1 | |
0 6 * * * osascript -e 'open app "Fuze"' > /dev/null 2>&1 | |
0 6 * * * osascript -e 'open app "Cisco AnyConnect Secure Mobility Client"' > /dev/null 2>&1 | |
## |