Skip to content

Instantly share code, notes, and snippets.

View richardstephens's full-sized avatar

Richard Stephens richardstephens

View GitHub Profile
@richardstephens
richardstephens / RowStringsToClasses.java
Created January 23, 2024 13:51
Convert a string of output for an SQL query into an array of POJOs
package cloud.gallium.lib.testutils;
import lombok.SneakyThrows;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@richardstephens
richardstephens / RichUuid.java
Created November 8, 2020 20:41
Base64 UUID with space for some flags
package dev.richst.libs.richuuid;
import java.io.*;
import java.util.Base64;
import java.util.UUID;
public class RichUuid {
static byte[] uuidToByteArray(UUID uuid) {
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
@richardstephens
richardstephens / multibors notes.md
Last active October 25, 2020 14:51
multibors notes.md

I'm starting work on a fork of bors-ng that i'm calling multibors for now. The goal is to support building multiple staging branches at once. If an r+ comes in while nothign is building, we'll build it as normal. If one or more batches are already building, we'll go through all the currently building batches, and create a new batch with the new PR on top. We'll also create a batch with just the newly R+'ed PR.

Then, when a build completes successfully, we'll check if it can be merged without blocking any of the as-yet-incomplete builds that were

Keybase proof

I hereby claim:

  • I am richardstephens on github.
  • I am richardstephens (https://keybase.io/richardstephens) on keybase.
  • I have a public key ASA6AqQmFd5A0B_RRPueTsQiQakWUzIeHLA5lkWxJB4f0Ao

To claim this, I am signing this object: