Skip to content

Instantly share code, notes, and snippets.

View dclausen's full-sized avatar

Dave Clausen dclausen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dclausen on github.
  • I am dclausen (https://keybase.io/dclausen) on keybase.
  • I have a public key ASC2VknaEHFOhG1KS8bA0q6r1ntkhMetVVjvKoAH5SyE1go

To claim this, I am signing this object:

@dclausen
dclausen / ssh-retry.sh
Created October 18, 2016 15:21 — forked from 9point6/ssh-retry.sh
Keep retrying SSH connection until success (Useful for waiting for VMs to boot)
#!/usr/bin/env bash
# Check we've got command line arguments
if [ -z "$*" ] ; then
echo "Need to specify ssh options"
exit 1
fi
# Start trying and retrying
((count = 100))
mappings numeric_detection: false, dynamic_templates: [ { metadata: { path_match: "metadata.*", mapping: { type: "string" } } }] do
indexes :email, analyzer: "standard", fields: { raw: { type: "string", index: "not_analyzed" } }
indexes :metadata do
indexes :CardType, analyzer: "standard", fields: { raw: { type: "string", index: "not_analyzed" } }
end
end