This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version=2 | |
type=@request_time:[%day:char-to:/%/%mon:char-to:/%/%year:number%:%time:time-24hr% %zone:char-to:]%] | |
rule=:%-:alternative{"parser":[{"type":"ipv4","name":"client_ip"},{"type":"ipv6","name":"client_ip"}]}% - - %request_time:@request_time% "%request_method:word% %request_uri:word% %request_version:char-to:"%" %response_code:float{"format":"string"}% %-:alternative{"parser":[{"type":"literal","text":"+","name":"logasap"},{"type":"literal","text":""}]}%%response_bytes:float{"format":"string"}% "" "" %-:alternative{"parser":[{"type":"float","format":"string","name":"client_port"},{"type":"word"}]}% %accept_ms:number{"format":"string"}% "%frontend_name:char-to:"%" "%backend_name:char-to:"%" "%server_name:char-to:"%" %timer_TR:float{"format":"string"}% %timer_Tw:float{"format":"string"}% %timer_Tc:float{"format":"string"}% %timer_Tr:float{"format":"string"}% %timer_Ta:float{"format":"string"}% %termination_state:word% %active_conn:float{"format":"string"}% %frontend_conn:float{"format":"string"}% %backend_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright (C) 2022 Dinko Korunic | |
# Simple tool to strip all languages except the desired one from a bunch of mkv files in a current folder | |
# Depends: mkvtoolnix | |
LANG_CODE="hr" | |
LANG_TRACK_COUNT=$(mkvinfo -s "$1" | head -50 | grep -c '^Track .*: audio') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Computer Language Benchmarks Game | |
// http://benchmarksgame.alioth.debian.org/ | |
// | |
// Go adaptation of binary-trees program with arena allocator | |
// | |
// Forked from https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-go-9.html and | |
// added arena allocator to have parity with Rust typed_arena version -Dinko Korunic | |
// | |
// Final results compared to Rust #2 (https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-rust-2.html) | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @license | |
// Copyright (C) 2019 Dinko Korunic | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |