Skip to content

Instantly share code, notes, and snippets.

View dadencukillia's full-sized avatar
👀
High interest-driven attention developer be like

Illia Diadenchuk dadencukillia

👀
High interest-driven attention developer be like
  • KPI
  • Ukraine, Rivne
  • 04:33 (UTC +02:00)
View GitHub Profile
@dadencukillia
dadencukillia / .env
Last active March 11, 2026 13:22
My simple docker-compose.yml file for a Wakapi set up using Cloudflare Tunnels. Adjustable via .env file
WAKAPI_PASSWORD_SALT=JUST_GENERATE_RANDOM_SYMBOLS # You can use this resource: https://www.ukraine.com.ua/info/tools/passwdgenerate/
WAKAPI_MAIL_SMTP_PASS=YOUR_SMTP_PASSWORD # If you have a SMTP server on your machine
WAKAPI_DB_PASSWORD=JUST_GENERATE_RANDOM_SYMBOLS # You can use this resource: https://www.ukraine.com.ua/info/tools/passwdgenerate/
WAKAPI_ALLOW_SIGNUP=true # or "false". I recommend to turn it off after your registration to make Wakapi unaccessible for strangers (for friends you can generate special links)
WAKAPI_PUBLIC_URL=https://wakapi.example.com # The link to your wakapi homepage
CLOUDFLARE_TUNNEL_TOKEN=YOUR_CLOUDFLARE_TUNNER_TOKEN # I recommend use Cloudflare Tunnels, because it's convenient and free to manage your domains and SSL certificates. https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-tunnel/get-started/create-remote-tunnel/
@dadencukillia
dadencukillia / CMakeLists.txt
Last active July 5, 2025 17:29
CEF implementation for a CMake project (Tested only on Linux)
cmake_minimum_required(VERSION 3.10.0)
# CMake options
set(CMAKE_INSTALL_RPATH "$ORIGIN")
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_BUILD_TYPE Release)
set(BUILD_SHARED_LIBS false)
set(CMAKE_CXX_STANDARD 17)
project(myApplication LANGUAGES C CXX VERSION 1.0.0)
@dadencukillia
dadencukillia / CMakeLists.txt
Created July 5, 2025 13:54
Useful preferences for CMake
# Autocompletition for clangd
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Locate libraries in binary directory
set(CMAKE_INSTALL_RPATH "$ORIGIN")
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
# Release/Debug build mode
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE Debug)
@dadencukillia
dadencukillia / Makefile
Last active July 5, 2025 14:13
Makefile: CMake launcher
EXECUTABLE := out
GENERATOR := Ninja
.DEFAULT_GOAL := all
.SILENT: run
all: configure compile run
clear:
rm -rf ./build
@dadencukillia
dadencukillia / Dockerfile
Last active March 3, 2025 19:31
Docker. Manticore Search ukrainian lemmatizer. Thanks for @hlushpenko
FROM manticoresearch/manticore:latest
RUN apt-key adv --fetch-keys http://repo.manticoresearch.com/GPG-KEY-manticore && \
apt -y update --allow-insecure-repositories && \
apt -y install \
wget \
mc \
build-essential \
libreadline-dev \
libncursesw5-dev \
@dadencukillia
dadencukillia / Makefile
Created September 27, 2024 09:11
Simple Makefile for launching C++ file
.DEFAULT_GOAL := all
.SILENT: clear build
clear:
rm -f ./exec
build:
g++ -Wall -o exec main.cpp
type nickname = string;
type uuid = string;
type identifier = string;
// For GET /users
type UsersResponse = nickname[];
// For GET /user/{nickname}
type UserResponse = {
nickname: nickname,

What is HttpInfoServer?

This is a project that consists of two parts: HttpInfoServer (hereinafter referred to as the "server part") and HttpInfoServer-mod (hereinafter referred to as the "mod part"). Both of these parts are important and necessary for correct operation. By combining them, you will create a REST API server based on the HTTP protocol that will collect and send up-to-date information about the player's state in the Minecraft game.

IMPORTANT INFORMATION: The mod part uses the Fabric Mod Loader to work, if you are not a Fabric fan, then this project is not for you.

Who is it for?

It is primarily intended for developers who want to create their own application that needs information about the status of a Minecraft player. It is forbidden to use the project to create cheats and track players without their consent. So, with that said, here is an example of projects you can create using

@dadencukillia
dadencukillia / CMakeLists.txt
Last active June 2, 2024 09:04
C++ CMake static linking
set(BUILD_SHARED_LIBS FALSE)
target_link_options(${PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static)
@dadencukillia
dadencukillia / rsacrypto.go
Last active March 11, 2026 17:55
Golang rsa module with chunk encryption and decryption
// Adapted from: https://gist.github.com/miguelmota/3ea9286bd1d3c2a985b67cac4ba2130a
package rsacrypto
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"fmt"