Skip to content

Instantly share code, notes, and snippets.

View thegreenrobot's full-sized avatar
🤖
too many secrets...

Matthew Green thegreenrobot

🤖
too many secrets...
View GitHub Profile
custom_metrics:
- name: sqlserver.buffer.page_lookups
counter_name: Page lookups/sec
- name: sqlserver.buffer.page_reads
counter_name: Page reads/sec
- name: sqlserver.workload.queued_requests
counter_name: Queued Requests

Log Processing Rules

log_processing_rules:

Generic String: "sensitive-info"

  - type: exclude_at_match
    name: exclude_sensitive_info
    pattern: (?:sensitive\-info)
@thegreenrobot
thegreenrobot / 0_article.md
Created August 14, 2018 18:27 — forked from hemebond/0_article.md
A SaltStack AWS Auto Scaling Solution

A SaltStack AWS Auto Scaling Solution

Overview

The AWS Auto Scaling Goup, configured with a customised Cloud-Init file, sends a notification to an SNS Topic, which in turn passes it onto an SQS queue that the Salt Master is subscribed to. A Reactor watches for the auto scaling events and pre-approves the new minion based on its Auto Scaling group name and instance ID.

Salt Master Configuration

## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/
---
- hosts: alpine_install
user: root
tasks:
# - name: create a complete empty file
# command: /usr/bin/touch /test/test.conf
- name: create a new file with lineinfile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@thegreenrobot
thegreenrobot / System Design.md
Last active May 6, 2016 13:56 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@thegreenrobot
thegreenrobot / 0_reuse_code.js
Created November 8, 2013 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