Skip to content

Instantly share code, notes, and snippets.

@adubovikov
adubovikov / benchmark_report_v3.html
Created February 15, 2026 10:47
hepic-lake Sharding Benchmark — 55.8M rec/s with 3 shards (+24% vs no sharding, +88% vs baseline)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hepic-lake Sharding Benchmark — 55.8M rec/s with 3 Shards</title>
<style>
:root {
--bg: #0f1117;
--card: #1a1d2e;
@adubovikov
adubovikov / benchmark_report_v2.html
Created February 14, 2026 21:58
hepic-lake Performance Optimization Benchmark — 34.9M rec/s Stable (+18% peak, +560% sustained, +337% multi-table vs OLD config)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hepic-lake Performance Optimization Benchmark — 34.9M rec/s Stable</title>
<style>
:root {
--bg: #0f1117;
--card: #1a1d2e;
@adubovikov
adubovikov / benchmark_report.html
Created February 13, 2026 17:06
hepic-lake Coalescer Benchmark — 29.7M rec/s, Data Integrity PASS (8.08M records, zero loss)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coalescer Benchmark — Data Integrity Report</title>
<style>
:root {
--bg: #0f1117;
--card: #1a1d2e;
@adubovikov
adubovikov / gist:6ba825e57fb1ff86c368bd307517f4f8
Created August 2, 2023 10:28 — forked from yuezhu/gist:47b15b4b8e944221861ccf7d7f5868f5
Generate self-signed certificate for HAProxy
# Generate a unique private key (KEY)
sudo openssl genrsa -out mydomain.key 2048
# Generating a Certificate Signing Request (CSR)
sudo openssl req -new -key mydomain.key -out mydomain.csr
# Creating a Self-Signed Certificate (CRT)
openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
# Append KEY and CRT to mydomain.pem
@adubovikov
adubovikov / blog20190524-01.sh
Created July 31, 2023 21:50 — forked from haproxytechblog/blog20190524-01.sh
5 Ways to Extend HAProxy with Lua
$ haproxy -vv | grep Lua
Built with Lua version : Lua 5.3.5
@adubovikov
adubovikov / blog20190524-01.sh
Created July 31, 2023 21:50 — forked from haproxytechblog/blog20190524-01.sh
5 Ways to Extend HAProxy with Lua
$ haproxy -vv | grep Lua
Built with Lua version : Lua 5.3.5
@adubovikov
adubovikov / clickhousedump
Last active September 28, 2021 08:21 — forked from inkrement/clickhousedump
dump all clickhouse databases and tables
#!/bin/bash
PASSWORD="--password=password"
DBLIST="db1 db2 db3"
OUTDIR=.
while read -r db ; do
while read -r table ; do
@adubovikov
adubovikov / rxring.c
Created February 16, 2018 23:21 — forked from giannitedesco/rxring.c
TPACKET_V3 mmap packet sockets, showing off flexible frame sizes and multi-process hash fanout
/* Copyright (c) 2013 Gianni Tedesco
* Released under the terms of the GNU GPL version 3
* mmap() packet socket transmission
*/
#ifndef __linux__
#error "Are you loco? This is Linux only!"
#endif
#include <stdio.h>
@adubovikov
adubovikov / IpToCountry.cpp
Created November 22, 2017 09:48 — forked from markusl/IpToCountry.cpp
Faster C++ class to map IP addresses to countries using database from http://software77.net/geo-ip/
#include <string>
#include <fstream>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iostream>
#include <stdexcept>
#include <array>
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
<?xml version="1.0"?>
<document type="captagent/xml">
<configuration name="core.conf" description="CORE Settings" serial="2014024212">
<settings>
<param name="debug" value="10"/>
<param name="version" value="2"/>
<param name="serial" value="2014056501"/>
<param name="uuid" value="00781a4a-5b69-11e4-9522-bb79a8fcf0f3"/>
<param name="daemon" value="false"/>
<param name="syslog" value="false"/>