Skip to content

Instantly share code, notes, and snippets.

View dadoonet's full-sized avatar
🇪🇺
From Europe with ❤️

David Pilato dadoonet

🇪🇺
From Europe with ❤️
View GitHub Profile
{
"meta": { "theme": "elegant" },
"basics": {
"name": "David Pilato",
"label": "Developer | Evangelist",
"image": "https://storage.cloud.google.com/dadoonet-speaker/DevoxxMA-David-Speaker.JPG",
"email": "david@pilato.fr",
"phone": "+33 613030841",
"url": "https://david.pilato.fr",
"summary": "A summary of John Doe…",
@dadoonet
dadoonet / commands.sh
Created February 11, 2022 17:24 — forked from xeraa/commands.sh
Elastic 8.0 security by default: Minimal setup with Docker for a 3 node cluster + Kibana
// Start the first node and keep the generated security credentials handy
docker run -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -p 9200:9200 -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0
// Check if the node has started correctly
curl --insecure --user elastic https://localhost:9200/
// Add your second node
docker run -e ENROLLMENT_TOKEN="..." -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0
// Check if it has joined the cluster
@dadoonet
dadoonet / ingest.kibana
Created March 19, 2019 16:25
Ingest Attachment with OCR
PUT _ingest/pipeline/attachment
{
"description" : "Extract attachment information",
"processors" : [
{
"attachment" : {
"field" : "data"
}
},{
"remove": {
@dadoonet
dadoonet / jussieu1.js
Last active December 10, 2018 13:42
Jussieu workshop
DELETE user
PUT user
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"_doc": {
"properties": {
"name": {

Keybase proof

I hereby claim:

  • I am dadoonet on github.
  • I am dadoonet (https://keybase.io/dadoonet) on keybase.
  • I have a public key ASAO0iyeEGc4SdS0o_h57mZ4tzHdCcblMVLnQXDkWQYr8wo

To claim this, I am signing this object:

@dadoonet
dadoonet / script.txt
Last active September 1, 2020 16:26
Advanced Search for your Legacy application script
### Step 0 : INIT
DELETE test
DELETE person
### Step 1
GET /
GET _cat/indices/person*?v&h=index,docs.count,store.size
@dadoonet
dadoonet / search_kibana_console.txt
Last active July 4, 2024 09:28
Demo script for "A NoSQL search engine to find..." talk
### REINIT
DELETE user
PUT user
{
"mappings": {
"properties": {
"name": {
"type": "text"
},
"comments": {
@dadoonet
dadoonet / 01-script-ingest.txt
Created June 22, 2016 10:22
Notes for the Ingest Node demo
# 52.35.38.35 - - [19/Apr/2016:12:00:04 +0200] "GET / HTTP/1.1" 200 24
# Start with empty pipeline
GET _ingest/pipeline/_simulate
{
"pipeline" : {
"processors" : [
]
},
"docs" : [
GET /logstash-2015.04.30/_search
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"term": {
"type": "iis6"
@dadoonet
dadoonet / 8823-demo.sh
Last active August 29, 2015 14:11 — forked from grantr/8823-demo.sh
#!/bin/bash
pkill -f 'elasticsearch.*cluster.name=8823'
rm -rf data/8823
bin/elasticsearch -Des.node.master=true -Des.cluster.name=8823 -Des.node.name=master 2>&1 >/dev/null &
sleep 1
bin/elasticsearch -Des.node.master=false -Des.cluster.name=8823 -Des.node.name=data1 2>&1 >/dev/null &
sleep 1