Skip to content

Instantly share code, notes, and snippets.

Created July 31, 2020 16:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jcollie/02cd24dffb695210fdeaece31925c7bc to your computer and use it in GitHub Desktop.
cialug regexes
import sys
import re
line_re = re.compile(r'^((?:\d+m)?\d+s)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*?)(?=(?:\d+m)?\d+s|\Z)', re.MULTILINE | re.DOTALL)
data =
start = 0
while start < len(data):
match =, start)
if not match:
start = match.end()
9m49s Normal Updated
machine/oo-r6sr3-worker-us-east-1d-nvfzh Updated machine
9m47s Normal Updated machine/oo-r6sr3-master-1
Updated machine oo-r6sr3-master-1
9m46s Normal Updated
machine/oo-r6sr3-worker-us-east-1b-hsmsx Updated machine
9m46s Normal Updated
machine/oo-r6sr3-worker-us-east-1a-wk5cs Updated machine
9m46s Normal Updated
machine/oo-r6sr3-worker-us-east-1e-z9xlb Updated machine
9m44s Normal Updated machine/oo-r6sr3-master-0
Updated machine oo-r6sr3-master-0
9m43s Normal Updated machine/oo-r6sr3-master-2
Updated machine oo-r6sr3-master-2
9m43s Normal Updated
machine/oo-r6sr3-worker-us-east-1d-tfg6x Updated machine
9m43s Normal Updated
machine/oo-r6sr3-worker-us-east-1c-6l42j Updated machine
59s Normal SuccessfulUpdate clusterautoscaler/default
Updated ClusterAutoscaler deployment:
4m7s Normal Pulled
pod/gateway-laravel-schedule-1296080-h43n6 Container image
"dockerregistry:4567/group/gateway/master:alpine-nodejs-fpm" already
present on machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment