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
=-= 1 | |
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 -XDELETE localhost:9200/esnoob >/dev/null | |
curl -XPUT localhost:9200/esnoob -d' | |
{ | |
"mappings": { | |
"t": { | |
"properties": { | |
"address": { | |
"type": "string" | |
} |
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
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles1.xml-p000000010p000010000.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles2.xml-p000010002p000024999.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles3.xml-p000025001p000055000.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles4.xml-p000055002p000104998.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles5.xml-p000105002p000184999.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles6.xml-p000185003p000305000.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles7.xml-p000305002p000464996.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles8.xml-p000465001p000665000.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles9.xml-p000665001p000925000.bz2 | |
http://dumps.wikimedia.org/enwiki/20130805/enwiki-20130805-pages-articles10.xml-p0009250 |
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 -s p.draines.com/shards.sh | sh | fgrep ' r ' | sort >/tmp/1 | |
sleep 30 | |
curl -s p.draines.com/shards.sh | sh | fgrep ' r ' | sort >/tmp/2 | |
diff -u /tmp/[12] |
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/sh | |
curl -s localhost:9200/_cluster/nodes\?all | python -c' | |
import sys, json | |
d = json.load(sys.stdin) | |
for id, n in d["nodes"].iteritems(): | |
print "%s %s %s %s" % (n["version"], | |
n["jvm"]["vm_name"], | |
n["jvm"]["version"], | |
n["transport"]["bound_address"]) |
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
echo -n $(curl -s localhost:9200 | python -c 'import sys,json; j = json.load(sys.stdin); print j["version"]["number"]') "" | |
curl -s localhost:9200/_nodes/_local/jvm | python -c 'import sys,json; j = json.load(sys.stdin); print j["nodes"].items()[0][1]["jvm"]["version"]' |
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
{ | |
"title": "Twitters", | |
"rows": [ | |
{ | |
"title": "Options", | |
"height": "50px", | |
"editable": true, | |
"collapse": false, | |
"collapsable": true, | |
"panels": [ |
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
-- | |
-- https://raw.github.com/strangeloop/lambdajam2013/master/jams/learning/Lambda-Jam.txt | |
-- | |
-- ghc --make mljam.hs -O2 -threaded | |
-- ./mljam +RTS -N3 | |
-- | |
module Main where | |
import Text.CSV |
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
{ | |
"bytes": 2953, | |
"contributors": null, | |
"coordinates": { | |
"coordinates": [ | |
-91.09631538, | |
30.3799838 | |
], | |
"type": "Point" | |
}, |
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/sh | |
curl -s -XDELETE localhost:9200/test >/dev/null | |
curl -s -XPOST localhost:9200/test -d' | |
{ | |
"mappings": { | |
"t": { | |
"properties": { | |
"application": { |