Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Brown jbrownsc

View GitHub Profile
@jbrownsc
jbrownsc / scale-deployment.yaml
Created Apr 21, 2020
This should trigger a cluster-autoscaler scale up event
View scale-deployment.yaml
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:
View keybase.md

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:

View gist:153a28bd80c92733cbce
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 Feb 1, 2013
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.
View gist:4694374
# 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 Dec 12, 2015
Postfix Logstash Patterns and Config - First round Based on https://gist.github.com/4385673
View gist:4694258
input {
stdin { type => "file" }
#redis {
# data_type => 'list'
# host => 'localhost'
# key => 'logstash:beaver'
# type => 'redis-input-beaver'
#}
}
You can’t perform that action at this time.