Skip to content

Instantly share code, notes, and snippets.

@nzroller
nzroller / git-pr-cleanup
Created August 19, 2016 06:00
Github squash-merge PR local cleanup
#!/bin/sh
# Delete local branches whose upstream has been removed
# (useful for Github squashed and merged branches)
# WARNING: git branch -D will force delete branches!
git branch -vv | grep ' gone' | cut -d' ' -f1-3 | xargs -i git branch -D {}
@nzroller
nzroller / keybase.md
Created April 21, 2016 07:25
Keybase Identity

Keybase proof

I hereby claim:

  • I am nzroller on github.
  • I am nzroller (https://keybase.io/nzroller) on keybase.
  • I have a public key ASDSfO0YA6Jmmup-CSb80LaNYOdAh2I6fVqt8yRjw4dwvQo

To claim this, I am signing this object:

@nzroller
nzroller / IncludeNonEmptySerializationTest
Created June 16, 2015 19:51
Include.NON_EMPTY default and afterburner serialization test
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
public class PrimitiveTest {
@JsonInclude(JsonInclude.Include.NON_EMPTY)