Skip to content

Instantly share code, notes, and snippets.

Aaron J. Zirbes aaronzirbes

Block or report user

Report or block aaronzirbes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View funWithRegexGroupNames.groovy
import java.util.regex.Matcher
import java.util.regex.Pattern
Map splitLabel(String label) {
Pattern labelPattern = Pattern.compile('(?<column>^[A-Za-z]+)(?<side>\\d)(?<row>\\d+$)')
Matcher labelMatcher = labelPattern.matcher(label)
String columnLabel ="column")
Integer sideLabel = Integer.parseInt("side"))
aaronzirbes /
Created Jan 19, 2013
This script will help you remove large files from your git repo history and shrink the size of your repository.
echo "Finding and Purging Big Files From Git History"
echo "=============================================="
echo ""
echo ""
echo ""
pushd "$(git rev-parse --show-toplevel)" > /dev/null
aaronzirbes / Codenarc.groovy
Last active Jul 16, 2018
Example Codenarc.groovy
View Codenarc.groovy
* Copyright 2014 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
aaronzirbes /
Created Mar 9, 2018
Turn Java Properties in to JSON
sed -E 's/(String|Integer|UUID|Instant|Boolean) ([a-zA-Z0-9]+;)/"\2": "\11",/' *.json
aaronzirbes / New MacBook Setup
Last active Nov 29, 2017
Steps I use to setup a new MacBook
View New MacBook Setup
# New MacBook Setup
This is how I setup a new MacBook
* brew install
* List:
* `/usr/bin/ruby -e "$(curl -fsSL"`
* brew cask install
aaronzirbes / ElasticTests.groovy
Created Jul 13, 2017
Testing Retrofit API for Elasticsearch
View ElasticTests.groovy
@Grab(group='com.squareup.retrofit', module='retrofit', version='1.9.0')
import retrofit.http.*
import retrofit.RestAdapter
class ElasticTests {
static final String INDEX = 'zirbes'
aaronzirbes / gist:3239033
Created Aug 2, 2012
brew doctor and libmacfuse/libosxfuse
View gist:3239033
If you see...
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib /usr/local/lib/libmacfuse_i64.2.dylib /usr/local/lib/libosxfuse_i32.2.dylib /usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
aaronzirbes / tail-pods
Created May 18, 2017
Tails multiple k8s pods
View tail-pods
if [ "$filter" == "" ]; then
View gist:b69bf4208aba0b7c0428bf1d322f144e
HttpServer server = HttpServer.create(new InetSocketAddress(config.healthCheckServerPort), 0)
server.createContext("/health", new HealthCheckHttpHandler(healthCheckRegistry))
View MockTcpServer.groovy
package org.zirbes.sandbox
import groovy.util.logging.Slf4j
import io.netty.bootstrap.ServerBootstrap
You can’t perform that action at this time.