Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Barretta mbarretta

View GitHub Profile
@mbarretta
mbarretta / gist:0feae006cab50c8011db75cf93c274bb
Last active Apr 2, 2018
attribute length via ingest node
View gist:0feae006cab50c8011db75cf93c274bb
# Create our mapping with a single attribute array: projects
PUT abac-ingest-node-test
{
"mappings": {
"doc": {
"properties": {
"projects": {
"type": "keyword"
}
}
@mbarretta
mbarretta / gist:f012f5e78ff71200e819ebfa0bddb544
Last active Mar 27, 2018
ineffective token_filter example: doc with two terms comes back in a terms_set query where only one term is supplied
View gist:f012f5e78ff71200e819ebfa0bddb544
PUT my_index
{
"mappings": {
"doc": {
"properties": {
"securityTags": {
"type": "keyword",
"fields": {
"length": {
"type": "token_count",
@mbarretta
mbarretta / abac-test.sh
Last active Jan 4, 2018
ABAC Test Scenario - Elastic X-Pack 6.1
View abac-test.sh
#!/bin/bash
# NOTE: This script has a dependency on python for parsing
ES_URL=http://localhost:9200
ES_USER=elastic
ES_PASS=changeme
##################
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: