Skip to content

Instantly share code, notes, and snippets.

@kyleian
kyleian / UserData.json
Created June 14, 2018 19:33
Cloudwatch Cloudformation Centos 7.2 RHEL UserData for Adding Memory Utilization Reporting to Alarm on MemoryUtilization
{
"UserData": { "Fn::Base64": { "Fn::Join": ["", [
"#!/bin/bash\n",
"cd /root \n",
"sudo yum install perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA -y\n",
"sudo yum install zip unzip -y \n",
"curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O \n",
"unzip CloudWatchMonitoringScripts-1.2.2.zip \n",
"rm CloudWatchMonitoringScripts-1.2.2.zip \n",
"cd aws-scripts-mon \n",
@kyleian
kyleian / gist:b049b066e787f2599063b21208b6d8bf
Last active January 15, 2020 19:14
Selenium Node on CentOS with Chrome script
sudo su
#Get Chromedriver and Selenium from net.
wget -P /opt/chromedriver/ "https://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip"
wget -P /opt/selenium/ "http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar"
wget -P /opt/ "http://download.oracle.com/otn-pub/java/jdk/8u111-b14/jdk-8u111-linux-x64.tar.gz"
#Build out chrome repo
cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]