I was facing the problem with direnv and NixOS devShells where my project had a multiple language
and there is a built-in LSP support in a new vim.lsp. So, I every time when move in this directory
was having to enter :lsp enable ts_ls. That wansn't convenient, I wanted a way when I was configuring
devShells to specify the needed LSPs right in the flake.nix, but don't cause errors for users that
doesn't use Neovim. The decision was simple - just introduce an environment variable that Neovim will read!
| 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/ |
| 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) |
| # 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) |
| EXECUTABLE := out | |
| GENERATOR := Ninja | |
| .DEFAULT_GOAL := all | |
| .SILENT: run | |
| all: configure compile run | |
| clear: | |
| rm -rf ./build |
| 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 \ |
| .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, |
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.
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
| set(BUILD_SHARED_LIBS FALSE) | |
| target_link_options(${PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static) |