Skip to content

Instantly share code, notes, and snippets.

View mattcree's full-sized avatar
🤔
fire

Matt Cree mattcree

🤔
fire
View GitHub Profile
@mattcree
mattcree / Dockerfile
Created April 23, 2024 15:41
A dockerfile for a building a .deb of git 2.44.0
FROM debian:bookworm AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get --quiet --yes update && apt-get install --quiet --yes \
build-essential \
devscripts \
debhelper \
dh-make \
libssl-dev \
@mattcree
mattcree / README.md
Last active April 4, 2024 16:17
Simulating different exit code scenarios from a custom merge driver

Usage

The following scenarios can be created

Single merge base

$ ./init-repo.sh && ./run-merge.sh 0    # should successfully merge and return exit 0
$ ./init-repo.sh && ./run-merge.sh 1    # should have conflicts and return exit 1
$ ./init-repo.sh && ./run-merge.sh 129  # should fail to run internal merge and return exit 2
@mattcree
mattcree / keybase.md
Created March 2, 2021 15:15
Keybase Proof

Keybase proof

I hereby claim:

  • I am mattcree on github.
  • I am cree (https://keybase.io/cree) on keybase.
  • I have a public key ASDXjp2TfLQl5s45EM0adl2_JLMER5AEWcZ_53KqkjjePQo

To claim this, I am signing this object:

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class LCDGenerator {
private static final int NUM_OF_LCD_ROWS = 3;
private static final HashMap<Integer, String[]> NUM_MAP = new HashMap<Integer, String[]>() {
{

Keybase proof

I hereby claim:

  • I am mattcree on github.
  • I am cree (https://keybase.io/cree) on keybase.
  • I have a public key whose fingerprint is 992A A6AB 25A0 9F42 DFAB B986 9C79 E014 AA79 0B79

To claim this, I am signing this object: