Skip to content

Instantly share code, notes, and snippets.

@svalo
svalo / report-download.py
Created January 27, 2022 17:30
Download Opensearch reports by name from CLI
#!/usr/bin/env python3
import requests
import json
import sys
from datetime import datetime
import base64
ES_URL="https://kibanaurl.example.com"
@svalo
svalo / Dockerfile
Created January 17, 2019 14:58
elastic-img Dockerfile
FROM docker.elastic.co/elasticsearch/elasticsearch:6.5.3
RUN yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-fess:6.5.0 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-extension:6.5.1 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-configsync:6.5.0 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-dataformat:6.5.0 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-langfield:6.5.0 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-minhash:6.5.0 \
&& yes | /usr/share/elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-learning-to-rank:6.5.0
RUN mkdir -p /var/lib/elasticsearch/config && chown -R elasticsearch /var/lib/elasticsearch
@svalo
svalo / docker-compose.yml
Created January 17, 2019 14:57
Docker compose for 3 elastic data node and 1 master + fess node
version: '2.2'
services:
elasticsearch1:
build: elastic-img
container_name: elasticsearch1
environment:
- cluster.name=docker-cluster-for-fess
- node.name=node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
@svalo
svalo / PKGBUILD
Last active March 25, 2016 09:02
Updated pkgbuild for nodejs-how2
# Maintainer: Morten Linderud <morten@linderud.pw>
_npmname=how2
pkgname=nodejs-how2
pkgver=1.1.0
pkgrel=1
pkgdesc="how2 finds the simplest way to do something in a unix shell. It's like man, but you can query it in natural language:"
arch=(any)
url="https://github.com/santinic/how2"
license=(MIT)
depends=('nodejs' 'npm')