Skip to content

Instantly share code, notes, and snippets.

View nsoft's full-sized avatar

Patrick (Gus) Heck nsoft

View GitHub Profile
@Override
public ElasticNodeSender build() {
ElasticNodeSender obj = getObj();
String home = Main.JJ_DIR + System.getProperty("file.separator") + obj.nodeName;
new File(home).mkdirs();
obj.settings = Settings.settingsBuilder()
.put("node.name", obj.nodeName)
.put("path.home", home)
.build();
obj.node = new NodeBuilder()
@nsoft
nsoft / gist:eb1c956246f7a373f203d9b6d4c94cce
Created July 5, 2017 03:10
Cassandra jboss-logging dependency (per gradle)
+--- org.apache.cassandra:cassandra-all:3.11.0-JJ
| +--- org.xerial.snappy:snappy-java:1.1.1.7
| +--- net.jpountz.lz4:lz4:1.3.0
| +--- com.ning:compress-lzf:0.8.4 -> 1.0.2
| +--- com.google.guava:guava:18.0 -> 19.0
| +--- commons-cli:commons-cli:1.1 -> 1.3.1
| +--- commons-codec:commons-codec:1.9
| +--- org.apache.commons:commons-lang3:3.1
| +--- org.apache.commons:commons-math3:3.2
| +--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4
@nsoft
nsoft / cloud.sh
Last active September 16, 2019 04:09
solr cloud dev cluster script
#!/bin/bash
# The goal of this script is to allow quick setup of a blank local
# cluster for development testing without needing to erase or
# interfere with previous testing. It also enables redeployment of
# the code for such testing clusters without erasing the data previously
# indexed. It is NOT for production use.
#
# This is also NOT meant to be run from within a lucene-solr working copy
# typical usage is to copy it out to a separate workspace and edit
@nsoft
nsoft / SOLR-11487-watch.patch
Last active November 3, 2017 02:49
SOLR-11487-watch.patch -- Patch vs master as of ~9pm Nov 2 2017
Index: solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java (date 1509475828000)
+++ solr/core/src/java/org/apache/solr/cloud/CreateAliasCmd.java (date 1508764667000)
@@ -21,9 +21,7 @@
import java.util.HashSet;
import java.util.List;
@nsoft
nsoft / ZkStateReader.java
Created November 3, 2017 02:50
just zk state reader as patched in earlier gist
/*
* 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
*
@nsoft
nsoft / gist:3901d8c27982f36bd4a1a74d5296f553
Created March 5, 2025 18:46
diff of PR deps vs main deps
--- main-deps.txt 2025-03-05 13:39:48.230830434 -0500
+++ patch-deps.txt 2025-03-05 13:37:54.734991827 -0500
@@ -1,3603 +1,3466 @@
-/home/gus/.jdks/azul-17.0.13/bin/java -Dmaven.multiModuleProjectDirectory=/home/gus/projects/apache/shiro/code/shiro -Djansi.passthrough=true -Dmaven.home=/home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/maven/lib/maven-event-listener.jar -javaagent:/home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/lib/idea_rt.jar=43637:/home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/bin -Dfile.encoding=UTF-8 -classpath /home/gus/.local/share/JetBrains/Toolbox/apps/intellij-idea-ultimate/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/home/gus/.local/share/JetBrains/Toolbox/apps/int
@nsoft
nsoft / gist:cce677cf3d6cd19ae3d0a386a7eeb7fa
Last active March 5, 2025 20:55
changed top level libs only (ignoring transitives and project self refs)
Filtered with
grep -E "((.*----(<|\[).*)|((\+|-)\[INFO] \+-.*))" dep-diffs.patch | grep -vE "(2|3)\.0\.0-SNAP"
[INFO] --------------------< org.apache.shiro:shiro-root >---------------------
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] --------------------< org.apache.shiro:shiro-lang >---------------------
[INFO] -------------------------------[ bundle ]-------------------------------
-[INFO] +- javax.servlet.jsp:jsp-api:jar:2.2:provided (optional)
+[INFO] +- jakarta.servlet.jsp:jakarta.servlet.jsp-api:jar:3.0.0:provided (optional)