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
package org.apache.zookeeper; | |
import static com.tngtech.archunit.core.importer.ImportOption.Predefined.DO_NOT_INCLUDE_TESTS; | |
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes; | |
import com.tngtech.archunit.base.DescribedPredicate; | |
import com.tngtech.archunit.core.domain.JavaClass; | |
import com.tngtech.archunit.core.domain.JavaClasses; | |
import com.tngtech.archunit.core.importer.ClassFileImporter; | |
import com.tngtech.archunit.core.importer.ImportOption; |
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 re | |
from collections import defaultdict | |
data = """ | |
================== 9.6.0 ================== | |
New Features | |
--------------------- | |
* SOLR-17141: Implement 'cpuAllowed' query parameter to limit the maximum CPU usage by a running query. (Andrzej Bialecki, Gus Heck, David Smiley) | |
* SOLR-599: Add a new SolrJ client using the JDK’s built-in Http Client. (James Dyer) |
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/sh | |
# | |
# Utility script to rsync and then open a shell or execute commands on a remote host. | |
# Tailored a little bit for Lucene/Solr | |
# @author David Smiley | |
# https://gist.github.com/dsmiley/daff3c978fe234b48a69a01b54ea9914 | |
set -uex | |
REMOTEHOST=buildbox | |
REMOTEPATH="builds$PWD" |
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
class SettableBreakIterator extends BreakIterator { | |
private final BreakIterator delegate; | |
private int currentCache; | |
public SettableBreakIterator(BreakIterator delegate) { | |
this.delegate = delegate; | |
currentCache = delegate.current(); | |
} |
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/sh | |
# | |
# Utility script to rsync and then open a shell or execute commands on a remote host. | |
# Tailored a little bit for Lucene/Solr | |
# @author David Smiley | |
# | |
set -uex | |
REMOTEHOST=buildbox.local | |
REMOTEPATH="builds$PWD" |
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
<!-- this is a part of Solr's jetty.xml to access control for some IPs --> | |
<!-- =========================================================== --> | |
<!-- Set handler Collection Structure --> | |
<!-- =========================================================== --> | |
<Set name="handler"> | |
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection"> | |
<Set name="handlers"> | |
<Array type="org.eclipse.jetty.server.Handler"> | |
<Item> |
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
def c = new groovy.ui.Console(getClass().classLoader, new Binding(project:project)) | |
c.run() | |
def doneLatch = new java.util.concurrent.CountDownLatch(1) | |
c.frame.windowClosed = {doneLatch.countDown()} | |
doneLatch.await() | |
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
function jc_remote { | |
jmx_host=$1 | |
jmx_port=${2:-5000} | |
proxy_port=${3:-8123} | |
echo "Connecting jconsole to $jmx_host:$jmx_port via SOCKS proxy using local port $proxy_port" | |
ssh -ND $proxy_port $jmx_host & | |
jconsole -J-DsocksProxyHost=localhost -J-DsocksProxyPort=${proxy_port} \ | |
service:jmx:rmi:///jndi/rmi://localhost:${jmx_port}/jmxrmi | |
kill %1 |