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 | |
curl 'localhost:9200/_cat/indices?v' | awk '{ print $3 }' | grep -v '^\.' | tr '\n' '\0' | xargs -n 1 -0 -I {} curl -X DELETE "http://localhost:9200/{}" |
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 | |
# Run tests (or anything else) in Docker by doing a tagged build and then run, which should make things much faster. | |
# | |
# @author forbesmyester | |
# @license MIT | |
DOCKER_TAG=$(echo $PWD | tr '[:upper:]' '[:lower:]' | sed 's/^\///' | sed 's/\//-/g') | |
echo "" | |
echo "== USING DOCKER TAG: test-$DOCKER_TAG ==========================" |
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 | |
export DOCKER_GEN_VERSION="0.3.9" | |
# Generates a new /etc/hosts whenever a docker host is added with a VIRTUAL_HOST environmental variable ( see super useful project at https://github.com/jwilder ) | |
# Code here shamelessly stolen from | |
# * https://github.com/jwilder/nginx-proxy/blob/master/Dockerfile | |
# * http://unix.stackexchange.com/questions/81685/how-to-remove-multiple-newlines-at-eof |
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 | |
cat /dev/urandom | base64 | sed 's/[^A-Za-z0-9]//' | head -c 8 |
NewerOlder