Skip to content

Instantly share code, notes, and snippets.

View jaycdave88's full-sized avatar

Jay C. Davé jaycdave88

View GitHub Profile

Log Processing Rules

log_processing_rules:

Generic String: "sensitive-info"

  - type: exclude_at_match
    name: exclude_sensitive_info
    pattern: (?:sensitive\-info)
@jaycdave88
jaycdave88 / centos7_ansible.sh
Created April 8, 2019 18:04 — forked from ncracker/centos7_ansible.sh
Setting up Ansible control machine - targets are going to be Windows hosts
#!/bin/bash
# Set up CentOS to act as an Ansible controller
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
# ensure CentOS all up-to-date
yum update -y
# epel is to be used for pip
yum install epel-release -y
@jaycdave88
jaycdave88 / multi_org_hosts_count.py
Created February 20, 2019 21:06 — forked from burnsie7/multi_org_hosts_count.py
multi_org_hosts_count.py
import datetime
import time
import requests
import simplejson
from datadog import initialize, api
"""
This script gives a real time report on ec2 and Datadog agent host usage
from multiple organizations and reports them up to the 'main' parent account.
@jaycdave88
jaycdave88 / 0_reuse_code.js
Created March 28, 2016 15:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console