This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* public domain | |
* | |
* https://creativecommons.org/publicdomain/zero/1.0/ | |
* | |
*/ | |
package test; | |
import java.lang.reflect.Modifier; | |
import java.util.concurrent.Callable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profile> | |
<id>Java 9+ configuration</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<!-- Use -release compiler option rather than source/target if 9+ --> | |
<release>${maven.compiler.target}</release> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profile> | |
<id>Java 9+ configuration</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<!-- Use -release compiler option rather than source/target if 9+ --> | |
<release>${maven.compiler.target}</release> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- enable default execution of integration (*IT.java) tests --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright © 2011 Mike Duigou. No rights reserved. | |
*/ | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.util.zip.Deflater; | |
import java.util.zip.GZIPOutputStream; | |
/** | |
* Extends GZIPOutputStream to improve behaviour of created streams for incrementally streamed content. This |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install OhMyZsh! | |
Install Xcode | |
Install Homebrew | |
Install homebrew tap cask-versions | |
homebrew install —cask bbedit firefox flux oracle-jdk oracle-jdk-javadoc slack transmission vlc wireshark zulu zulu8 gpg-suite | |
ack | |
ant | |
automake | |
bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##!/usr/bin/env zsh | |
export EDITOR=$(command -v bbedit || command -v nano || command -v vi || command -v ed) | |
# initialize python version | |
if command -v pyenv 1>/dev/null 2>&1; then | |
eval "$(pyenv init -)" | |
fi | |
# Use Java 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright © 2017 Mike Duigou. | |
* Public Domain. No Rights Reserved. | |
*/ | |
public class URLTest { | |
private static final Logger LOGGER = Logger.getLogger(URLTest.class.getSimpleName()); | |
private static final int TEST_FILE_SIZE = 1 << 20; |