Skip to content

Instantly share code, notes, and snippets.

View jbrownsc's full-sized avatar

Josh Brown jbrownsc

View GitHub Profile
@jbrownsc
jbrownsc / scale-deployment.yaml
Created April 21, 2020 04:49
This should trigger a cluster-autoscaler scale up event
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx
spec:
selector:
matchLabels:
app: nginx
replicas: 50 # tells deployment to run 2 pods matching the template
template:
@jbrownsc
jbrownsc / keybase.md
Created September 6, 2016 18:08
Keybase

Keybase proof

I hereby claim:

  • I am jbrownsc on github.
  • I am jbrownsm (https://keybase.io/jbrownsm) on keybase.
  • I have a public key whose fingerprint is 3A28 CD4A 6462 7471 2943 3DC1 3EE3 16EB 4AEB AC87

To claim this, I am signing this object:

var entities = [],
entityType = null,
entitytypes,
t;
if (__plugin.bukkit) {
entityType = org.bukkit.entity.EntityType;
}
if (__plugin.canary) {
entityType = Packages.net.canarymod.api.entity.EntityType;
}
@jbrownsc
jbrownsc / gist:4694374
Created February 1, 2013 21:45
Postfix Grok for Logstash Based on previous patterns. I cast the "delay" field into an integer for stats analysis in Kibana I also split out a "Postfix Base" for DRY glory.
# Postfix stuff
QUEUEID (?:[A-F0-9]+|NOQUEUE)
EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+
EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote}
RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?)
@jbrownsc
jbrownsc / gist:4694258
Last active December 12, 2015 01:49
Postfix Logstash Patterns and Config - First round Based on https://gist.github.com/4385673
input {
stdin { type => "file" }
#redis {
# data_type => 'list'
# host => 'localhost'
# key => 'logstash:beaver'
# type => 'redis-input-beaver'
#}
}