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
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.nio.charset.StandardCharsets; | |
public class Foo { | |
public static void main(String[] args) throws IOException { | |
final char c = 'ñ'; | |
final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
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
2422 apache-tomee-7.0.0-M1-plus 139 3555 6034 ssssssssssssssssssssssss | |
2424 apache-tomee-7.0.0-plus 138 3339 5874 ssssssssssssssssssssssss | |
2429 apache-tomee-7.0.3-plus 139 3434 5929 ssssssssssssssssssssssss | |
2431 apache-tomee-7.0.1-plus 139 3250 5717 ssssssssssssssssssssssss | |
2450 apache-tomee-7.0.2-plus 139 3370 5919 sssssssssssssssssssssssss | |
2451 apache-tomee-7.0.0-M3-plus 139 3419 5944 ssssssssssssssssssssssss | |
2466 apache-tomee-7.0.4-plus 139 3510 6111 sssssssssssssssssssssssss | |
2475 apache-tomee-7.0.0-M2-plus 139 3314 5827 ssssssssssssssssssssssss | |
2526 apache-tomee-7.0.5-plus 139 3691 6263 sssssssssssssssssssssssss | |
2526 apache-tomee-7.1.0-plus 139 3684 6332 ssssssssssssssssssssssssss |
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
#!/bin/bash | |
# Useful for when you want to trim off leading spaces from clipboard text | |
# Say you grab a chunk of code from a markdown document and want to remove | |
# the four spaces at the front: | |
# | |
# pbcut -c 5- | |
pbpaste | cut "$@" | pbcopy | |
pbpaste |
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
#!/bin/bash | |
mvn archetype:generate -DarchetypeGroupId=org.tomitribe \ | |
-DarchetypeArtifactId=tomitribe-crest-archetype \ | |
-DarchetypeVersion=0.19 \ | |
-Dversion=1.0-SNAPSHOT \ | |
-DgroupId=org.example -DartifactId=mycommand && | |
cd mycommand/ && | |
mvn clean install && | |
./target/mycommand ls . |
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
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.time.LocalDate; | |
import java.time.ZoneId; | |
import java.util.Date; | |
/** | |
* This pattern has the following benefits: | |
* | |
* - Date formats are referenced as a strong type |
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
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.params.ParameterizedTest; | |
import org.junit.jupiter.params.provider.Arguments; | |
import org.junit.jupiter.params.provider.MethodSource; | |
import java.time.LocalDate; | |
import java.util.stream.Stream; | |
import static org.junit.jupiter.params.provider.Arguments.arguments; |
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
Downloading from apache: https://repository.apache.org/content/repositories/releases/org/apache/tomee/tomee-webaccess/7.0.0/tomee-webaccess-7.0.0.pom | |
Progress (1): 4.1/10 kB | |
Progress (1): 7.7/10 kB | |
Progress (1): 10 kB | |
Downloaded from apache: https://repository.apache.org/content/repositories/releases/org/apache/tomee/tomee-webaccess/7.0.0/tomee-webaccess-7.0.0.pom (10 kB at 13 kB/s) | |
Downloading from apache: https://repository.apache.org/content/repositories/releases/org/apache/tomee/tomee/7.0.0/tomee-7.0.0.pom | |
Progress (1): 4.1/14 kB | |
Progress (1): 7.7/14 kB | |
Progress (1): 12/14 kB |
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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"> | |
<enterprise-beans> | |
<session id="Movies"> | |
<ejb-name>Movies</ejb-name> | |
<mapped-name></mapped-name> | |
<local-bean/> | |
<ejb-class>org.superbiz.injection.tx.Movies</ejb-class> | |
<session-type>Singleton</session-type> | |
<timer> |
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
#!/bin/bash | |
mkdir /tmp/test | |
cd /tmp/test | |
curl -s -O https://archive.apache.org/dist/tomee/KEYS | |
curl -s -O https://archive.apache.org/dist/tomee/tomee-9.0.0-M7/apache-tomee-9.0.0-M7-webprofile.tar.gz | |
curl -s -O https://archive.apache.org/dist/tomee/tomee-9.0.0-M7/apache-tomee-9.0.0-M7-webprofile.tar.gz.asc | |
echo " | |
list keys |