This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SERVER=http://localhost:9200 | |
INDEX=random-samples | |
MAPPING=docs | |
CURL_OPTS="-sw '\n'" | |
ACTIONS_LOG=random-samples-index.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start clean - hope you don't have a test index you need!!! | |
curl -XDELETE localhost:9200/test | |
curl -XPUT localhost:9200/test | |
printf "\nCreated a new test index...\n" | |
curl -XPUT localhost:9200/test/snowball-mapping/_mapping -d '{ | |
"snowball-mapping" : { | |
"properties" : { | |
"text" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
die "Usage: $0 FASTA_FILE" if !$ARGV[0]; | |
# read the fasta file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -w "\n" -XDELETE localhost:9200/scrap | |
curl -w "\n" -XPUT localhost:9200/scrap/ -d ' | |
index : | |
number_of_replicas : 0 | |
' | |
curl -w "\n" -XPUT localhost:9200/scrap/script-demo/1?refresh=1 -d '{ | |
"fieldA" : "test string 1" | |
}' |