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
# in your .zshrc add: | |
alias HG='history | grep ' | |
# reload ZSH (using my default location as an example) | |
. ~/.zshrc | |
# Now run: ``HG something_of_interest`` and your history is grepped for said interesting something. |
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
* Using the interactions/comment index as an example * | |
1) Current mappings that do not include collection_id: | |
curl http://localhost:9200/interactions/comment/_mapping?pretty=true | |
{ | |
"comment" : { | |
"properties" : { | |
"body" : { | |
"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
require 'rubygems' | |
require 'grok-pure' | |
# Set a new matcher | |
grok = Grok.new | |
# Load default and custom patterns | |
grok.add_patterns_from_file("/etc/logstash/patterns/default") | |
grok.add_patterns_from_file("/etc/logstash/patterns/mycustoms") |
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 | |
for voice in $(say -v ? | awk '{print $1}'); do | |
say -v $voice "${voice} says - that shit rocks my ass solid yo" | |
done |