Skip to content

Instantly share code, notes, and snippets.

@Wiston999
Wiston999 / commands.sh
Last active July 20, 2023 08:32
fluent-bit es_out target_index PR files
# Command for running tests
$ TEST_PRESET=valgrind SKIP_TESTS='flb-rt-out_td flb-it-network' ./run_code_analysis.sh 2>&1 | tee ~/flb_es_out_test_valgrind.log
# Command for running tests for out-elasticsearch with output
$ TEST_PRESET=valgrind SKIP_TESTS='flb-rt-out_td' INPUT_TEST_COMMAND='ctest . -R out_elasticsearch -V' ./run_code_analysis.sh 2>&1 | tee ~/flb_es_out_test_valgrind_output.log
# Commands for debug output with valgrind
$ docker-compose up -d
$ valgrind bin/fluent-bit -v -c fluent-bit.conf 2>&1 | tee ~/flb_es_out_valgrind_debug.log
@Wiston999
Wiston999 / git-housekeeper.sh
Last active March 28, 2019 21:58
Bash script that cleans up old git branches based on a configurable time expression.
#!/bin/bash
log() {
local message=$1
local level=${2:-}
local color=${3:-"\e[97m"}
# If color is set and running in a terminal
if [ -n "${color}" ] && [ -t 1 ]; then
echo -en "${color}"
fi

Keybase proof

I hereby claim:

  • I am wiston999 on github.
  • I am victorcabezas (https://keybase.io/victorcabezas) on keybase.
  • I have a public key ASDujskgfTHrpANNDZgTy-BWMxcGkNq7mjunegJLwjm2rgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wiston999 on github.
  • I am wiston666 (https://keybase.io/wiston666) on keybase.
  • I have a public key whose fingerprint is 0FE2 7575 0006 B217 DFFB 9BC4 EA15 4C2C 259B 0315

To claim this, I am signing this object: