This file contains hidden or 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 | |
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository | |
#shopt -o -s xtrace | |
# Define Nexus Configuration | |
NEXUS_BASE=http://repository.example.com:8081/nexus | |
REST_PATH=/service/local | |
ART_REDIR=/artifact/maven/redirect |
This file contains hidden or 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
package org.htmlcleaner; | |
public class HtmlUtils{ | |
/** | |
* @see "http://www.w3.org/TR/html401/struct/text.html#h-9.1" | |
* ASCII space ( ) | |
* ASCII tab (	) | |
* carriage return (
) | |
* line feed (
) |
This file contains hidden or 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 (C) 2011 | |
* Michael Mosmann <[email protected]> | |
* Martin Jöhren <[email protected]> | |
* | |
* Licensed 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 hidden or 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 static InetAddress getLocalHost() throws UnknownHostException { | |
InetAddress ret = InetAddress.getLocalHost(); | |
if (!ret.isLoopbackAddress()) { | |
//getLocalHost() did not return the loopback address | |
ret = InetAddress.getByName("localhost"); | |
if (!ret.isLoopbackAddress()) { | |
_logger.severe("" + ret.getHostAddress() + " is not a loopback address"); | |
} | |
} | |
// _logger.log(Level.SEVERE,"LoopbackAddress: "+ret.isLoopbackAddress()); |
This file contains hidden or 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.IOException; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.mongodb.Mongo; | |
import com.mongodb.MongoException; | |
import com.mongodb.WriteConcern; | |
import de.flapdoodle.embedmongo.MongoDBRuntime; |
This file contains hidden or 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 class NestedShutdownHooks { | |
public static void main(String[] args) { | |
Runtime.getRuntime().addShutdownHook(new Thread() { | |
public void run() { | |
System.out.println("foo"); | |
Runtime.getRuntime().addShutdownHook(new Thread() { | |
public void run() { | |
System.out.println("bar"); | |
} | |
}); |
This file contains hidden or 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
# New Features / Improvements | |
- Query tracing view | |
- Cassandra 2.1 support | |
- Upgrade to Java Driver 2.1 | |
- Add support for Tuples | |
- Add support for UDTs | |
- Add UDTs to the Schema view | |
- Add content assist for UDTs | |
- Add scoping and validation for UDTs |
This file contains hidden or 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 com.datastax.driver.core.policies.AddressTranslator; | |
import java.net.InetSocketAddress; | |
import java.util.Map; | |
public class SSHPortForwardingAddressTranslator implements AddressTranslator { | |
private final Map<InetSocketAddress, InetSocketAddress> portForwardings; | |
public SSHPortForwardingAddressTranslator(Map<InetSocketAddress, InetSocketAddress> portForwardings) { |
This file contains hidden or 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
package com.datastax.driver.extras.codecs.blobs; | |
import com.datastax.driver.core.DataType; | |
import com.datastax.driver.core.ProtocolVersion; | |
import com.datastax.driver.core.TypeCodec; | |
import java.nio.ByteBuffer; | |
public class IntBlobCodec extends TypeCodec.PrimitiveIntCodec { |
This file contains hidden or 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
package com.datastax.driver.dse; | |
import com.datastax.driver.core.Cluster; | |
import com.datastax.driver.core.ResultSet; | |
import com.datastax.driver.core.ResultSetFuture; | |
import com.datastax.driver.core.Row; | |
import com.datastax.driver.core.Session; | |
import com.google.common.util.concurrent.FutureCallback; | |
import com.google.common.util.concurrent.Futures; | |
import com.google.common.util.concurrent.ListenableFuture; |
OlderNewer