Skip to content

Instantly share code, notes, and snippets.

View sbrannen's full-sized avatar

Sam Brannen sbrannen

View GitHub Profile
@beatngu13
beatngu13 / SystemProperties.java
Last active June 13, 2020 10:48
Easily handle Java system properties with JUnit 5 extensions
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith;
@Retention( RetentionPolicy.RUNTIME )
@Target( ElementType.METHOD )
@ExtendWith( SystemPropertyExtension.class )
@cbeams
cbeams / links.md
Last active January 28, 2019 18:02
Links from "Spring Framework 3.2 – Themes and Trends" webinar on January 16th, 2013
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: