Skip to content

Instantly share code, notes, and snippets.

View untergeek's full-sized avatar

Aaron Mildenstein untergeek

View GitHub Profile
@zeroping
zeroping / linkind-switch.base.yaml
Created January 7, 2022 04:27
ESPHome config for Linkind relay switch
# Basic Config
#---
#substitutions:
# https://esphome.io/guides/configuration-types.html#substitutions
# device_name: esp-br3 # hostname & entity_id
esphome:
name: ${device_name}
esp32:
@lefthand
lefthand / Collectd conf for elasticsearch
Created March 17, 2015 18:03
Collectd config file for gathering Elasticsearch status using curl_json plugin.
# Inspired by https://gist.github.com/dc2447/6783658
# Added index stats and selected more suitable types.
<Plugin curl_json>
# Gather a few index specific stats
<URL "http://<%= @hostname %>:9200/<%= @index_name %>/_stats">
Instance "<%= @index_name %>"
<Key "_all/total/docs/count">
Type "gauge"
</Key>
@markharwood
markharwood / Kibana dash
Last active August 29, 2015 14:01
Scripts for analyzing Elasticsearch log files
{
"title": "eslogs",
"services": {
"query": {
"list": {
"0": {
"query": "",
"alias": "",
"color": "#7EB26D",
"id": 0,
@seang-es
seang-es / esdiagdump.sh-DEPRECATED
Last active August 29, 2015 14:01
esdiagdump.sh - create log bundle for ES support
#!/bin/bash
#
# esdiagdump
#
# Usage: esdiagdump [-h <hostname/IP>:<port>] [-o <output filename>]
# hostname defaults to localhost
# output file defaults to current directory/esdiagdump.out.<timestamp>
#
# This version is no longer being maintained. The current version lives in the elasticsearch/dev/shared/tools repository.
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 09:29
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@LVLAaron
LVLAaron / Example output with no filters
Last active November 16, 2016 22:06
Config files used to send Windows Eventlog data with NXLOG to Logstash
{
"_index": "logstash-2013.12.23",
"_type": "logs",
"_id": "eMsyB2q4TA6sH0bW3kCBZA",
"_score": null,
"_source": {
"EventTime": "2013-12-22 22:45:27",
"Hostname": "aapc",
"Keywords": -9187343239835812000,
"EventType": "INFO",
@stevendeboer
stevendeboer / logstash.conf
Last active December 28, 2015 00:09
Using anonymize filter to add checksum.
# Add field which is composed of multiple source fields.
filter {
mutate {
add_field => [ "hash", "%{field1}/%{field2}/%{field3}" ]
}
anonymize {
algorithm => "SHA1"
fields => [ "hash" ]
key => "keyvalue"