I hereby claim:
- I am dakrone on github.
- I am dakrone (https://keybase.io/dakrone) on keybase.
- I have a public key whose fingerprint is 6CA9 E3B2 9F28 FEA8 6750 B6BE 9D64 65D4 3ACE CAE0
To claim this, I am signing this object:
PUT /_component_template/mappings | |
{ | |
"template": { | |
"mappings": { | |
"properties": { | |
"@timestamp": { | |
"type": "date" | |
} | |
} | |
} |
#!/usr/bin/env zsh | |
# -*- mode: shell-script -*- | |
# | |
# Tangle .org files with org-mode | |
# Example usage: | |
# ∴ tangle nested-in-all.org | |
# Files: "nested-in-all.org", Dir: /Users/hinmanm/es-scripts | |
# Tangled 6 code blocks from nested-in-all.org | |
# Set this to the location of your emacs executable |
(ns cheshire.experimental | |
(:require [cheshire.core :refer :all] | |
[clojure.java.io :refer :all]) | |
(:import (java.io ByteArrayInputStream FilterInputStream | |
SequenceInputStream))) | |
(defn escaping-input-stream | |
[is] | |
(let [new-is (proxy [FilterInputStream] [is] | |
(read |
#!/usr/bin/env ruby -w | |
# encoding: UTF-8 | |
# | |
# A simply `p4 diff` output colorizer. | |
FILE_R = /^====\s+([\s\S]+)(#\d+) - ([\s\S]+) ====$/ | |
POS_R = /^(\d+[ad]\d+)$/ | |
OUT_R = /^< / | |
IN_R = /^> / | |
;; via http://emacs.stackexchange.com/questions/17327/how-to-have-c-offset-style-correctly-detect-a-java-constructor-and-change-indent | |
(defun my/point-in-defun-declaration-p () | |
(let ((bod (save-excursion (c-beginning-of-defun) | |
(point)))) | |
(<= bod | |
(point) | |
(save-excursion (goto-char bod) | |
(re-search-forward "{") | |
(point))))) |
PUT /test | |
{ | |
"settings": { | |
"index": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0, | |
"analysis": { | |
"analyzer": { | |
"my_ngrams": { | |
"type": "custom", |
I hereby claim:
To claim this, I am signing this object:
All of them are better then never wrapping the line at all.
Agreed
I'd love to hear about your favorites sometime because I don't really have a favorite.
So, here's my personal list:
(
#!/usr/bin/env zsh | |
curl -XDELETE 'localhost:9200/mal' | |
echo | |
curl -XPOST 'localhost:9200/mal' -d'{ | |
"mappings": { | |
"doc": { | |
"properties": { | |
"num": {"type": "integer", "ignore_malformed": true} | |
} |
#!/usr/bin/env zsh | |
for url in `cat config/elasticsearch.yml| fgrep "<http://elasticsearch.org" | cut -d\< -f2 | cut -d\> -f1`; do | |
curl -sL -w "%{http_code} %{url_effective}\\n" "$url" -o /dev/null | |
done |