ElasticSearch Queries

Group By Read more

Rust Cross Compilation

I recently had a need to cross-compile a Rust binary for ARM64 architecture (Linux). This little code snippet describes how I did it with Alpine linux base image. Cross-RS Read more

OpenSSL/SSH One-Lines

Convert Public RSA Key to OpenSSH Public Key Format Extract Certificate and Private Key from PKCS12 Read more

Introducing Local File As Block Device

Here we show how to inspect images presented as files with .img extension. As ‘img’ extension does not always dictate type of file it may not always work. One good indicator that it’s usable as shown here is that if... Read more

Java/JVM Architectural Support Tools

JUnit Check For Cycles ArchUnit examples Read more

Using socat to exchange data via UDP

I had a case where I had to exchange a file via UDP socket, and for that to work I had to find out a tool (without writing new one) that can do that. As socat is well known tool... Read more

C++ Metaprogramming Tricks

Check that static method exists Things to remember for template type deduction Template Class Members Deducing Function Argument Type Feature Flags Iterating over variadic template arguments in function Read more

C++ Metaprogramming – Tuple

In this article I’m going to implement a custom Tuple implementation inspired by https://medium.com/@mortificador/implementing-std-tuple-in-c-17-3cc5c6da7277. Custom tuple-like structures are useful when implementing DSL on top of C++. Implementation Example Read more

C/C++ Useful Articles

Read more

Creating a JNI Class in Kotlin

In order to invoke a JNI we need to create a Kotlin class with extrenal method and a C function with specific signature for each external method in Kotlin. Let’s assume that we have the following class in Kotlin: For... Read more