I hereby claim:
- I am makuk66 on github.
- I am makuk66 (https://keybase.io/makuk66) on keybase.
- I have a public key whose fingerprint is 30DC B2AE 2281 E3E0 46BF 0472 521F B994 999F A9CA
To claim this, I am signing this object:
import org.apache.lucene.analysis.Analyzer; | |
import org.apache.lucene.analysis.standard.StandardAnalyzer; | |
import org.apache.lucene.document.*; | |
import org.apache.lucene.index.*; | |
import org.apache.lucene.queryparser.flexible.core.QueryNodeException; | |
import org.apache.lucene.queryparser.flexible.standard.StandardQueryParser; | |
import org.apache.lucene.search.IndexSearcher; | |
import org.apache.lucene.search.Query; | |
import org.apache.lucene.search.ScoreDoc; | |
import org.apache.lucene.search.TopScoreDocCollector; |
#!/bin/sh | |
# dhclient change hostname script for Ubuntu | |
# /etc/dhcp/dhclient-exit-hooks.d/sethostname | |
# logs in /var/log/upstart/network-interface-eth0.log | |
# for debugging: | |
echo "sethostname BEGIN" | |
export | |
set -x |
I hereby claim:
To claim this, I am signing this object:
import datetime | |
date=datetime.date(2014,7,17) | |
print('{d}'.format(d=date)) | |
for _ in range(12): | |
date=date+datetime.timedelta(days=21) | |
print('{d}'.format(d=date)) |
#!/bin/bash -eux | |
apt-get install -y git-core curl wget python-yaml build-essential libssl-dev | |
locale-gen en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
apt-get -y install python-software-properties software-properties-common | |
hash -r | |
add-apt-repository ppa:webupd8team/java |
diff --git a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java | |
index 9cbd048..86902c4 100644 | |
--- a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java | |
+++ b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java | |
@@ -175,21 +175,41 @@ public class SolrResourceLoader implements ResourceLoader,Closeable | |
*/ | |
void addToClassLoader(final String baseDir, final FileFilter filter, boolean quiet) { | |
File base = FileUtils.resolvePath(new File(getInstanceDir()), baseDir); | |
- if (base != null && base.exists() && base.isDirectory()) { | |
- File[] files = base.listFiles(filter); |
#!/bin/sh | |
# dhclient change hostname script for Ubuntu | |
oldhostname=$(hostname -s) | |
if [ $oldhostname = 'localhost' ] | |
then | |
sleep 10 # Wait for configuration to be written to disk | |
hostname=$(cat /var/lib/dhcp/dhclient.eth0.leases | awk ' /host-name/ { host = $3 } END { printf host } ' | sed 's/[";]//g' ) | |
fqdn="$hostname.$(cat /var/lib/dhcp/dhclient.eth0.leases | awk ' /domain-name/ { domain = $3 } END { printf domain } ' | sed 's/[";]//g')" | |
ip=$(cat /var/lib/dhcp/dhclient.eth0.leases | awk ' /fixed-address/ { lease = $2 } END { printf lease } ' | sed 's/[";]//g') | |
echo "cloudstack-hostname: Hostname _localhost_ detected. Changing hostname and adding hosts." |
use std::io::prelude::*; | |
use std::net::TcpStream; | |
fn main() { | |
let address = "192.168.0.109:9983"; | |
let mut stream = match TcpStream::connect(address) { | |
Ok(s) => s, | |
Err(e) => panic!("Cannot connect to {}: {}", address, e) | |
}; | |
stream.write("ruok".as_bytes()).ok().expect("write failed"); |
mak@crab 516 solr-5.3.0 $ diff -du bin/solr.orig bin/solr | |
--- bin/solr.orig 2015-09-29 21:41:32.000000000 +0100 | |
+++ bin/solr 2015-09-29 21:41:48.000000000 +0100 | |
@@ -1304,7 +1304,7 @@ | |
if [ "$run_in_foreground" == "true" ]; then | |
echo -e "\nStarting Solr$IN_CLOUD_MODE on port $SOLR_PORT from $SOLR_SERVER_DIR\n" | |
- "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar "${SOLR_JETTY_CONFIG[@]}" | |
+ exec "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar "${SOLR_JETTY_CONFIG[@]}" | |
else |
(fabric)mak@crab 678 docker-calico-fabric [docker-1.9-libnetwork] $ fab remove_everything | |
[trinity10] Executing task 'remove_everything' | |
[trinity10] run: docker ps --format '{{ .ID }}' --no-trunc | xargs -n 1 --no-run-if-empty docker kill | |
[trinity10] out: /bin/bash: docker: command not found | |
[trinity10] out: | |
[trinity10] run: docker ps --all --format '{{ .ID }}' --no-trunc | xargs -n 1 --no-run-if-empty docker rm | |
[trinity10] out: /bin/bash: docker: command not found | |
[trinity10] out: |