Skip to content

Instantly share code, notes, and snippets.

View kala13x's full-sized avatar

Sandro Kalatozishvili kala13x

View GitHub Profile
@kala13x
kala13x / xenv_id_pub.xb
Last active January 31, 2024 21:08
Public IDs for xcore server with simple and advanced encryption (hex-binary)
2B 3D 4C 29 4B D9 07 2C C8 C1 C9 14 2E 0D 9F 82
28 A0 B6 FA 44 FC 1F C7 09 C3 7D 9F 80 0B 36 8B
4F A3 3D E5 E1 F3 0E 22 35 11 08 46 1E EE CC 27
FE 3F F1 88 27 E1 A7 FE E4 7F A8 A6 91 33 5D 78
4A 89 9E 44 BF EB 02 54 4F FD 4C 8F FE 01 47 43
BE D5 68 99 01 90 5F B5 53 90 81 E9 A9 A4 6C 8D
DB 20 FD 3B 76 24 E0 AA 38 6B 13 2B E6 11 02 C4
B3 A5 2E 75 3F CB E1 CC 50 17 2E FE 6B B0 AA A7
43 64 2B 18 02 1D 0B 01 83 F4 5C 54 97 EA 54 0E
E0 22 0B D3 A9 D9 75 B1 E4 E5 4C 12 C2 50 E0 19
@kala13x
kala13x / xdb.c
Created February 23, 2023 17:50
XDB File Reader for CLI
/*!
* @file xdb/xdb.c
*
* 2015-2022 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Implementation of the XDB file parser
* Using: https://github.com/kala13x/libxutils
*/
#include <xutils/xstd.h>
@kala13x
kala13x / pcap2ts.c
Last active June 27, 2022 14:33
Extract MPEGTS payload from PCAP file
/*!
* @file pcap2ts.c
*
* 2015-2022 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Extract MPEGTS payload from PCAP file.
* Usage: pcap2ts <input> <output> <verbose>
* Example: pcap2ts dump.pcap payload.ts 1
*
* Compile command:
@kala13x
kala13x / xtop.c
Last active March 13, 2022 09:03
Advanced system monitor with network, memory and CPU statistics in one window
/*!
* @file libxutils/examples/xtop.c
*
* This source is part of "libxutils" project
* 2015-2022 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Implementation of advanced system monitor based on the xUtils.
* Collect and monitor network, memory and CPU statistics in one window.
*/
@kala13x
kala13x / xhttp.c
Created February 1, 2022 16:17
HTTP Client Tool - Send costum HTTP request, analyze headers, download content, etc.
/*!
* @file libxutils/examples/xhttp.c
*
* This source is part of "libxutils" project
* 2015-2020 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Example file for working with the HTTP request/responses.
* Send costum HTTP request, analyze headers, download content, etc.
*/
@kala13x
kala13x / statcov.c
Created January 26, 2022 13:08
Parse COVID-19 case statistics from https://stopcov.ge/ and display JSON serialized output
/*!
* @file libxutils/examples/statcov.c
*
* 2020-2021 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Parse and print COVID-19 case
* statistics from https://stopcov.ge/
*/
#include <xutils/xstd.h>
@kala13x
kala13x / events.c
Created January 7, 2022 21:55
High performance event based non-blocking echo server
/*!
* @file libxutils/examples/events.c
*
* This source is part of "libxutils" project
* 2015-2020 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Implementation of high performance event based non-blocking echo server.
* The xUtils library will use poll() or epoll() depending on the operating system.
*/
@kala13x
kala13x / chat_server.cpp
Last active November 26, 2021 21:34
Simple chat server with subscribe pattern
/*
* upwork/singles/chat_server.cpp
*
* 2021 (c) Sun Dro (f4tb0y@protonmail.com)
*
* EPOLL based high performance chat server with subscribe pattern
* Compile: g++ -g -O2 -Wall chat_server.cpp -o chat_server -lpthread
*/
#include <stdio.h>
@kala13x
kala13x / lagint.c
Last active July 13, 2022 17:45
Lagrange polynomial and coefficient calculations
/*
* lagint.c
* 2019-2020 Sun Dro (f4tb0y@protonmail.com)
*
* Calculate Lagrange interpolated polynomials and
* displays the coefficient of each polynomials
*/
#include <stdio.h>
#include <errno.h>
@kala13x
kala13x / xjson.c
Last active February 1, 2022 16:18
JSON linter and minify with xutils/xjson
/*!
* @file libxutils/examples/xjson.c
*
* This source is part of "libxutils" project
* 2019-2021 Sun Dro (f4tb0y@protonmail.com)
*
* @brief Parse, lint and minify json using xjson library.
*/
#include <xutils/xstd.h>