Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Torsten Bøgh Köster tboeghk

🚀
View GitHub Profile
@tboeghk
tboeghk / README.md
Created May 26, 2021
SOLR-15437 demonstration
View README.md

💡 SOLR-15437 demonstration

I set up this small Gist to demonstrate a possible bug in Solr's Re-ranking / LTR / QueryComponent.

When combining Re-Ranking and Sorting in a query in a Solr Cloud environment on a collection with multiple shards, the result is sorted randomly.

Reproducing the error

@tboeghk
tboeghk / README.md
Created Apr 29, 2021
SOLR-11904 demonstration
View README.md

💡 SOLR-11904 demonstration

I set up this small Gist to help demonstrate an edge case when running Solr as a TLOG/PULL replica ensemble with authentication enabled and authorization being rather strict.

The problem is that in said environment, the PULL replica cannot check the TLOG leader replicas for updates. It get's rejected with a 401 HTTP error code.

@tboeghk
tboeghk / cloudSettings
Last active May 31, 2021
VScode Settings
View cloudSettings
{"lastUpload":"2021-05-31T11:41:23.468Z","extensionVersion":"v3.4.3"}
@tboeghk
tboeghk / README.md
Last active Nov 20, 2019
Deployments, Services and Ingresses to run a recent Graylog2 on Kubernetes in #yolo mode without any persistence.
View README.md

These Kubernetes resources deploy a recent Graylog2 cluster on Kubernetes in #yolo mode without any persistence – The ideal way to quickly run, inspect and adapt a Graylog cluster in Kubernetes. The Deployment will install:

  • Graylog 2.4.0
  • Elasticsearch 5.6.3
  • Kibana 5.6.3

Deploy Graylog

@tboeghk
tboeghk / README.md
Last active Aug 29, 2015
Prints unused route53 records
View README.md

Route53Cleanup

Report on Route53 IP records not found in the EC2 running instances.

usage: route53-cleanup.py --zoneid A2BCD3FGH4ZXYO  

Route53 Cleanup Reporter  
@tboeghk
tboeghk / create-german-wordlist
Created Aug 18, 2014
Downloads and creates a german wordlist for use in Solr
View create-german-wordlist
# download
wget http://repo.or.cz/w/wortliste.git/blob_plain/master:/wortliste
# easy things
awk -F ';' '{print $1;}' > list_words_dictionary.de.txt
# ok, complex
grep -v ";-2-;" wortliste |awk -F ';' '{print $2;}' | tr -d "[·|-<>]" | grep "=" | awk -F '=' '{print $1"\n"$2"\n"$3"\n"$4;}' | sort -u | tr [:upper:] [:lower:] >> list_words_dictionary.de.txt
# reset
@tboeghk
tboeghk / gist:9089363
Created Feb 19, 2014
Compile varnish VCL
View gist:9089363
varnishd -C -f /etc/varnish/main.vcl
View gist:6220342
This file has been truncated, but you can view the full file.
80470 => 80470
ABC => ABC
ABM => ABM
ACL => ACL
ACPI => ACPI
ADAC => ADAC
ADSL => ADSL
AEG => AEG
AG => AG
@tboeghk
tboeghk / code_style_formatter.xml
Last active Dec 10, 2015
Shopping24 Java Codestyle
View code_style_formatter.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="12">
<profile kind="CodeFormatterProfile" name="Shopping24 GmbH" version="12">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>