Skip to content

Instantly share code, notes, and snippets.

View Victhereum's full-sized avatar
⚙️
Building For The Greater Good

Victor Isaac Victhereum

⚙️
Building For The Greater Good
View GitHub Profile
@Victhereum
Victhereum / logs.txt
Created May 3, 2026 00:16
HAProxy logs
2026-05-02T23:51:33.010204934Z [inf] [entrypoint] Substituting environment variables in HAProxy config...
2026-05-02T23:51:33.010210804Z [inf] [entrypoint] System DNS resolver: fd12::10
2026-05-02T23:51:33.010218702Z [inf] [entrypoint] Waiting for emqx1.railway.internal to resolve (up to 60s)...
2026-05-02T23:51:33.010224128Z [inf] [entrypoint] DNS ready (or timeout reached). Starting HAProxy...
2026-05-02T23:51:33.010229793Z [inf] mqtt_backend/emqx3: IP changed from '(none)' to 'fd12:dafa:1c10:0:1000:24:85c3:27a4' by 'railway_dns/dns1'.
2026-05-02T23:51:33.010233901Z [inf] mqtts_backend/emqx3: IP changed from '(none)' to 'fd12:dafa:1c10:0:1000:24:85c3:27a4' by 'DNS cache'.
2026-05-02T23:51:33.010239314Z [inf] mqtt_ws_backend/emqx3: IP changed from '(none)' to 'fd12:dafa:1c10:0:1000:24:85c3:27a4' by 'DNS cache'.
2026-05-02T23:51:33.010244209Z [err] [WARNING] (1) : mqtt_backend/emqx3: IP changed from '(none)' to 'fd12:dafa:1c10:0:1000:24:85c3:27a4' by 'railway_dns/dns1'.
2026-05-02T23:51:33.010250199Z
@Victhereum
Victhereum / haproxy.cfg
Created May 3, 2026 00:11
HAProxy reverse proxy set for EMQX cluster
global
log stdout format raw local0 info
maxconn 10240
tune.ssl.default-dh-param 2048
# ---------------------------------------------------------------------------
# Railway private networking uses its own DNS resolver available inside the
# container via the system resolver (populated in /etc/resolv.conf at runtime).
# We tell HAProxy to use it so server addresses like emqx1.railway.internal
# are resolved at runtime rather than at config parse time, which would fail
@Victhereum
Victhereum / contracts...Teddy.sol
Created June 3, 2022 08:01
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
@Victhereum
Victhereum / index.html
Created December 13, 2021 22:01
Project Management Dashboard UI
<div class="app-container">
<div class="app-header">
<div class="app-header-left">
<span class="app-icon"></span>
<p class="app-name">Portfolio</p>
<div class="search-wrapper">
<input class="search-input" type="text" placeholder="Search">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="feather feather-search" viewBox="0 0 24 24">
<defs></defs>
<circle cx="11" cy="11" r="8"></circle>