Skip to content

Instantly share code, notes, and snippets.

View mq1n's full-sized avatar
😎
[object Object]

Koray mq1n

😎
[object Object]
View GitHub Profile
@mq1n
mq1n / fuzzer.cpp
Last active February 14, 2026 09:14
fuzzer
#include "../include/PacketFuzzer.hpp"
#include "../include/desc.h"
#include "../include/char.h"
#include "../include/log.h"
#include <net/Type.hpp>
#include <base/Serialization.hpp>
#include <corelib/boost_compat.hpp>
#include <xxhash.h>
@mq1n
mq1n / soak.cpp
Last active February 14, 2026 09:14
soak tool
// net_soak/main.cpp – Soak test for metin2_net library
#include <net/Acceptor.hpp>
#include <net/ClientSocketAdapter.hpp>
#include <net/Socket.hpp>
#include <net/Type.hpp>
#include <SpdLog.hpp>
#include <asio/io_service.hpp>
@mq1n
mq1n / uiPersonalDropManager.py
Last active September 5, 2025 20:51
uiPersonalDropManager.py
import app
import player
import net
import chat
import grp
import dbg
import ui
import localeInfo
import uiToolTip
@mq1n
mq1n / uiramadantimer.py
Last active March 4, 2025 11:35
Ramadan timer m2 script
import ui
import uiScriptLocale
import net
import app
import chat
import time
import math
import dbg
import constInfo
import grp
@mq1n
mq1n / CloudflareCheck.hpp
Created February 16, 2025 19:20
simple C++ function which verifies if an IP address is part of Cloudflare's network with IPv4 and IPv6 support
#include <iostream>
#include <vector>
#include <string>
#include <asio.hpp>
#include <stdexcept>
#include <optional>
#include <xorstr.hpp>
namespace CloudflareChecker
{
@mq1n
mq1n / main.yml
Created December 29, 2024 14:18
m2 ci build config
name: build
on:
push:
branches:
- main
jobs:
bsd:
runs-on: ubuntu-latest
@mq1n
mq1n / cf-captcha-load-fix-ipboard4.user.js
Created December 26, 2024 08:03
IPSv4 Cloudflare infinite loop fix
// ==UserScript==
// @name IPSv4 Cloudflare infinite loop fix
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Fixes Cloudflare's infinite captcha loading loop on IPS Board v4 forums by patching service worker registration
// @match https://metin2.dev/*
// @grant none
// @run-at document-start
// ==/UserScript==
@mq1n
mq1n / gist:81d0847ac3b150a21a22a62f998e015e
Created October 9, 2024 14:26
Wireguard docker sample
volumes:
etc_wireguard:
services:
wg-easy:
environment:
# Change Language:
# (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi, ja, si)
- LANG=en
@mq1n
mq1n / SafeExec.hpp
Created August 20, 2024 14:25
A C++ utility for safe function execution with comprehensive exception handling. Supports both sync and async execution and cross platform compatible
#pragma once
#include <any>
#include <functional>
#include <optional>
#include <type_traits>
#include <utility>
#include <thread>
#include <future>
#include <iostream>
#include <array>
@mq1n
mq1n / upscaler.py
Last active January 11, 2026 13:28
Topaz Photo AI CLI Sample with Python Automated Script & DDS Support
import os, sys, subprocess
try:
from wand.image import Image
except ImportError:
os.system('python -m pip install wand')
from wand.image import Image
def main(args):
if len(args) < 1:
print('Usage: upscaler.py <input_image> [output_image]')