2 minute read Published:

Vim, A Quick Reminder

When trying to add a new vim feature into my daily workflow, I run into problems. Normally what I do when learning something new (or relearning), is to write some notes on a piece of paper, or store it on a file. The issue is, when needing that refresher, I’ve either misplaced the paper or forgotten what random file the info was in. The real issue, however, is I don’t want to break out of my flow.

3 minute read Published:

Use Java for Helm Tests

Have you heard of this new programming language called java-script? Recently, I converted a legacy project to Kubernetes. The design of the service was somewhat flaky. It relied on 4 different directory mounts, one of which was a Windows Share mounted as a NFS volume. Have you every tried to resolved permission of a file between Windows and *nix? Don’t. The project is essentially a plain service, allowing for uploading and downloading file base on some specific business logic.

3 minute read Published:

Converting This Blog

About 8 years ago I decided to start a blog to encourage writing. Recently I decided that I should also use the blog as a method of learning. The following is a break down of how I converted the blog from WordPress to it’s current form. WordPress has been good for me. The free version has all the features I require, easy to use, analytics, and the WordPress social ecosystem is nice.

2 minute read Published:

Expect Script to Update Unix Group File

Expect scripts are useful when you need to interact with programs designed to work with a terminal interface. Not always an ideal way to get things done, but sometimes their is no better way to interact with said program. I had an incident recently where I needed to log into a server and add myself to a group. I couldn’t just log in as myself, I had to sudo before editing.

2 minute read Published:

ZSH: Emoji Analog Clock

Just about any example of a of customized ZSH prompt that you’ll find on the internet has time shown. PROMPT='time: %T > ' I can’t recall the last time I noticed or gained any advantage of having the time printed in the terminal. Lots of other customized ZSH prompts also have some emoji characters to spice things up. Skulls šŸ’€, ghost šŸ‘», etc. That’s easy enough to add. ghost=$'\U1F47B' PROMPT='time: %T $ghost > You can also directly paste an emoji into your configuration file, but I didn’t like the idea of having none regular text in my configuration files.

1 minute read Published:

Combining Two Objects in Java 8

Say you have a simple POJO: @Getter @Setter public class Person { private Long id; private String name; } You extend that POJO for a specific use case: @Getter @Setter public class SpecificPerson extends Person { private String role; } If you have a list of both instances how do you combine them? List<Person> people; List<SpecificPerson> specificPeople; If both list contain a similar subset of people were Person has part of the data and SpecificPerson has the other part of the data a way to combine the two would be through a BiFunction.

6 minute read Published:

My First Atlassian Plugin

Goal An Atlassian Macro that will query BitBucket and return a list of valid branches from a particular repo, with the option to filter. Basically, this rest call: stash/rest/api/1.0/projects/{project}/repos/{repo}/branches?filterText=release Problem Where I work we have a couple dozen micro-services that may or may not need to be updated during a particular release phase. In order to not miss an artifactĀ I wanted to make a way to get automatic exposure to the required deployment.

2 minute read Published:

Oracle: No Data Found

ORA-01403: no data found This is an error that happens in Oracle when you try and stuff nothing into a variable via a select statement. SELECT id INTO tempvar FROM person WHERE name = 'Steve'; Most places will tell you to work with this problem through exceptions: BEGIN SELECT id INTO tempvar FROM person WHERE first_name = 'Steve'; EXCEPTION WHEN NO_DATA_FOUND THEN --what to do when no data is found END; This seems strange to me, as this is not an exceptional case.

3 minute read Published:

ZSH: How Deep Am I

If you are on unix and you haven’t tried zsh, I would recommend it. If you use zsh and haven’t tried oh-my-zsh, I would recommend it. I won’t go into too much detail onĀ oh-my-zsh and how it helps manage your zsh configuration, but, it provides two features that make command line work more pleasant. 1) Plugins for integration with things like git, gulp, ruby, etc and 2) a number of different themes.

3 minute read Published:

Standup Notes

A while back I found a nice snippet of code that allows you to turn your browser into a quick note taking tool. Just create a bookmark with the following code and you can quickly open a new tab and start typing. It ends up looking like the following: On occasion, when our Scrum leader was on vacation, I would end up running the morning stand up meetings. I wanted to take notes but didn’t want to bother writing out the state of 10 coworkers status, so I used my browser notes to type down quick reminders of whatĀ everyone was doing.