Linux
Elasticsearch
Delete Index
curl -XDELETE localhost:9200/[index]?master_timeout=5m
allocate unassigned shards
range=2 IFS=$'\n' for line in $(curl -s 'localhost:9200/_cat/shards' | fgrep UNASSIGNED); do IN...
Truncate Corrupted Translog of Index
/usr/share/elasticsearch/bin/elasticsearch-shard remove-corrupted-data --index graylog_9 --shard-...
FFMpeg
add Timestamp to Video
ffmpeg -i <video_in>.mp4 \ -vf "drawtext = fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSer...
convert all files of type in directory
for i in *.ts; do ffmpeg -i "${i}" -c:v libx264 -c:a copy -c:s mov_text "${i%%.*}.mp4"; done
Find video Codec of Video
ffprobe -select_streams v0 -show_entries "format:stream" \ -of json -v quiet \ -i ./path/to/v...