I hereby claim:
- I am djmaze on github.
- I am djmaze (https://keybase.io/djmaze) on keybase.
- I have a public key ASDLM7YHADRbPM4VIBahe0KR1qQU0lJ0Oa7CHE2BDK4YHAo
To claim this, I am signing this object:
# | |
# Ce fichier de configuration Logstash permet d'effectuer la copie d'index soit: | |
# - à l'intérieur d'un même cluster Elasticsearch | |
# - entre différents clusters Elasticsearch | |
# | |
# Utile dans le cas où nous voulons réindexer un index à l'aide de nouveaux mappings ou pour | |
# dupliquer la production vers un autre environnement de tests. | |
# | |
# Pour invoquer la commande: | |
# LS_HEAP_SIZE="2048m" /path/to/bin/logstash -w 2 -f copie-elasticsearch.conf |
{ | |
"template" : "ul-*", | |
"order" : 90, | |
"settings" : { | |
"index" : { | |
"refresh_interval" : "-1", | |
"number_of_replicas" : "0" | |
} | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
master: | |
image: elasticsearch:2 | |
ports: | |
- "9200:9200" | |
restart: always | |
container_name: es_master | |
es-node: | |
image: elasticsearch:2 | |
command: elasticsearch --discovery.zen.ping.unicast.hosts=es_master |
ffmpeg -i "https://content.jwplatform.com/manifests/Wqyolfwt.m3u8" -c copy -bsf:a aac_adtstoasc video.mp4 |
class Dashing.Pomodoro extends Dashing.Widget | |
ready: -> | |
setInterval(@startCountdown, 500) | |
startCountdown: => | |
current_timestamp = Math.round(new Date().getTime()/1000) | |
end = parseInt($(@node).find("#pomodoro-end-time").html()) | |
end_timestamp = Math.round(end / 1000) | |
seconds_until_end = end_timestamp - current_timestamp |
#!/bin/bash -xv | |
### Country list | |
# CHANGE WITH YOUR COUNTRIES | |
COUNTRIES="europe/france/guadeloupe europe/france/guyane europe/france/mayotte europe/france/martinique europe/france/reunion europe/france" | |
# SMALL SUBSET FOR TESTING: | |
COUNTRIES="europe/france/guyane europe/france/mayotte" | |
NOMINATIM="/var/www/Nominatim" | |
cd $NOMINATIM/data |
root@host $ docker run --privileged -d --name dockerd docker:dind | |
root@host $ docker run -it --rm --link dockerd:docker ubuntu bash | |
root@container $ apt-get update && apt-get -y install docker.io | |
root@container $ DOCKER_HOST="docker:2375" docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
# 0. For the server, use the "Docker" base image from the ImageHub (https://www.scaleway.com/de/imagehub/docker/) | |
# 1. Install https://github.com/calavera/docker-volume-glusterfs | |
# Alternatively, just download the prebuilt executable from https://gobuilder.me/get/github.com/calavera/docker-volume-glusterfs/docker-volume-glusterfs_master_linux-arm.zip | |
apt-get -y install golang | |
export GOPATH=~/go | |
go get github.com/calavera/docker-volume-glusterfs | |
mv go/bin/docker-volume-glusterfs /usr/local/bin/ | |
# 2. Install GlusterFS |