# Configure terraform
terraform {
required_version = "~> 0.14.0"
required_providers {
newrelic = {
source = "newrelic/newrelic"
version = "~> 2.9.0"
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
import smtplib | |
from email.mime.text import MIMEText | |
smtp_ssl_host = 'smtp.gmail.com' # smtp.mail.yahoo.com | |
smtp_ssl_port = 465 | |
username = 'USERNAME or EMAIL ADDRESS' | |
password = 'PASSWORD' | |
sender = 'ME@EXAMPLE.COM' | |
targets = ['HE@EXAMPLE.COM', 'SHE@EXAMPLE.COM'] |
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
--- | |
# Setup LAMP Stack | |
- hosts: host1 | |
tasks: | |
- name: Add ppa repository | |
become: yes | |
apt_repository: repo=ppa:ondrej/php | |
- name: Install lamp stack | |
become: yes | |
apt: |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS CF Template to create VPC, Subnet, Security Group, Route Table and Internet Gateway", | |
"Parameters":{ | |
"AvailabilityZone": { | |
"Description": "select the Availability Zone for your Deployment", | |
"Type": "AWS::EC2::AvailabilityZone::us-west-2" | |
} | |
}, | |
"Mappings": { |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : " Create an Amazon EC2 instance running the Windows AMI. ", | |
"Parameters" : { | |
"KeyName": { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance", | |
"Type": "AWS::EC2::KeyPair::KeyName", |
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 | |
# Install script for Latest WordPress on local dev | |
# Setup | |
# Hardcoded variables that shouldn't change much | |
# Path to MySQL | |
MYSQL='/usr/bin/mysql' |
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
1. Update the server: | |
apt-get update | |
apt-get upgrade | |
apt full-upgrade | |
2. Add SSH key: | |
mkdir ~/.ssh && touch ~/.ssh/authorized_keys |
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
# coding: utf-8 | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.keys import Keys | |
import requests | |
import json | |
import os | |
import time | |
BASEDIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "screenshots/") |
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
from email.policy import default | |
import os | |
import schedule | |
import time | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
from dashboard_exporter import exporter | |
import mimetypes |
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
from email.policy import default | |
import os | |
import time | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
from dashboard_exporter import exporter | |
import mimetypes | |
import time |
OlderNewer