Skip to content

Instantly share code, notes, and snippets.

@Liblor
Liblor / es-kb-indices.md
Created June 8, 2023 12:52
Elasticsearch/Kibana: Indices

Elasticsearch & Kibana Indices

Indices used by kibana or the security integration.

.kibana-event-log*

Kibana event logs which include detection rule execution logs

.metrics-endpoint.metadata_united_default

@Liblor
Liblor / Makefile
Created June 21, 2019 13:32
MCF Makefile that emits/creates llvm bitcode
# Makefile for MCF[1] that emits llvm bitcode (*.bc) files
# ld.gold needed
#
# [1] http://www.zib.de/opt-long_projects/Software/Mcf/
CC=clang
CFLAGS=-flto -std=gnu99 -Xclang -disable-O0-optnone
LDFLAGS=-flto -fuse-ld=gold -Wl,-plugin-opt=save-temps
.PHONY: all clean
@Liblor
Liblor / brightness.sh
Created May 21, 2019 21:09
Brightness notification (progressbar): dunst
#!/usr/bin/bash
# Brightness notification: dunst
icon_path=/usr/share/icons/Adwaita/64x64/status/
notify_id=817
function get_brightness {
@Liblor
Liblor / volume.sh
Created May 21, 2019 20:30
Volume notification: Pulseaudio and dunst
#!/usr/bin/bash
# Volume notification: Pulseaudio and dunst
# inspired by gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
icon_path=/usr/share/icons/Adwaita/64x64/status/
notify_id=506
sink_nr=1 # use `pacmd list-sinks` to find out sink_nr
@Liblor
Liblor / crabllvm_log.txt
Created May 17, 2019 09:03
[crab-llvm] Invariants aren't inserted into LLVM bitcode
$ crabllvm.py ex.c --crab-dom=zones --crab-track=arr --crab-add-invariants=all -o test.crab.bc
CRAB WARNING: unsigned inequality -_7 <=_u -1338 skipped by split_dbm domain
CRAB WARNING: unsigned inequality _7 <=_u 1337 skipped by split_dbm domain
@V_23:int declare main(:int,:ptr)
_3:
/**
INVARIANTS: ({}, {})
**/
_4 = &() + 4;
@Liblor
Liblor / LineWrap.java
Last active November 30, 2016 23:32
Line breaks | Line wrapping - Dynamic Programming calculate minimal penalty/badness factor
/**
* @author Loris Reiff <loris.reiff [a] mailbox.org>
* <loris.reiff [a] hotmail.com>
* ETH HW - D&A
* Minimal Line breaks
*/
class LineWrap {
public static int penalty(int length, int width) {
@Liblor
Liblor / .Xresources
Last active January 24, 2019 18:24
My .Xresources file. Color Scheme: Dark Tango
! Terminal: urxvt
! ===============
! Tango color scheme
! ------------------
URxvt*foreground: #eeeeec
URxvt*background: #2e3436
URxvt*cursorColor: #8ae234
URxvt*colorUL: #8ae234
URxvt*underlineColor: #92659a
@Liblor
Liblor / tictactoe.py
Created March 25, 2016 19:49
Ein konsolen Tic Tac Toe
#!/usr/bin/env python3
#
# -- German --
# Autor: Liblor
# Datum: 27.12.2011
# Lizenz: Creative Commons Attribution License
#
# Ein konsolen Tic Tac Toe
#
@Liblor
Liblor / is_prime.sh
Created March 25, 2016 18:51
A is_prime function in bash script using trail division, thus not very fast and efficient.
#!/usr/bin/env bash
#
# Author: Liblor
# Date: 16.03.2016
# License: Creative Commons Attribution License (CC BY 4.0)
#
#
# A is_prime function in bash script using trail division,
# thus not very fast and efficient.
#