Skip to content

Instantly share code, notes, and snippets.

@drewr
drewr / es-list.sh
Last active December 15, 2015 10:38
curl -s -XDELETE localhost:9200/foo >/dev/null
curl -s -XPUT localhost:9200/foo/t/1 -d'
{
"collections": [
32423,
232,
434
],
"text": "the quick brown fox jumped over the lazy moon"
#!/bin/sh
curl -s 'localhost:9200/wiki/_search?search_type=scan&scroll=1m' -d'
{
"query": {
"terms": {
"_id": [
2018958,
2018961,
2018967,
2013-04-04 12:39:15,957 INFO [main] [lifecycle] Starting Bamboo 4.4.5 (build #3507 Wed Mar 27 07:21:06 CDT 2013) using Java 1.7.0_17 from Oracle Corporation
2013-04-04 12:39:15,957 INFO [main] [lifecycle] Real path of servlet context: /tmp/jetty-0.0.0.0-8080-bamboo.war-_bamboo-any-/webapp
2013-04-04 12:39:16,039 INFO [main] [lifecycle] Using bamboo.home: /tmp/bamboo
2013-04-04 12:39:16,073 INFO [main] [UpgradeLauncher] UpgradeLauncher not performed since the application has not been setup yet.
2013-04-04 12:39:16,111 INFO [main] [DefaultConfiguration] Loading global messages from com.atlassian.bamboo.ww2.BambooActionSupport
2013-04-04 12:39:16,111 INFO [main] [DefaultConfiguration] Loading global messages from help-paths
2013-04-04 12:39:16,219 INFO [main] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
2013-04-04 12:40:31,122 INFO [qtp1749190291-18] [JohnsonFilter] The application is not yet setup. Redirect
** clear es caches
aardvark1 took 431 hits 2
aardvark1 took 2 hits 2
aardvark1 took 2 hits 2
aardvark1 took 2 hits 2
aardvark1 took 1 hits 2
aardvark1 took 3 hits 2
aardvark1 took 1 hits 2
aardvark1 took 2 hits 2
aardvark1 took 2 hits 2
@drewr
drewr / malformed.sh
Last active December 17, 2015 08:09
#!/bin/sh
curl -s -XPUT localhost:9200/_template/test -d '
{
"mappings": {
"_default_": {
"_all": {
"enabled": false
}
},
#!/bin/sh
curl -s -XDELETE localhost:9200/test >/dev/null
curl -s -XPOST localhost:9200/test -d'
{
"mappings": {
"t": {
"properties": {
"application": {
{
"bytes": 2953,
"contributors": null,
"coordinates": {
"coordinates": [
-91.09631538,
30.3799838
],
"type": "Point"
},
@drewr
drewr / mljam.hs
Last active December 19, 2015 13:19
--
-- 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
{
"title": "Twitters",
"rows": [
{
"title": "Options",
"height": "50px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [