Skip to content

Instantly share code, notes, and snippets.

@nzroller
nzroller / git-pr-cleanup
Created Aug 19, 2016
Github squash-merge PR local cleanup
View git-pr-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 Apr 21, 2016
Keybase Identity
View keybase.md

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 Jun 16, 2015
Include.NON_EMPTY default and afterburner serialization test
View IncludeNonEmptySerializationTest
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)
You can’t perform that action at this time.