Skip to content

Instantly share code, notes, and snippets.

View mnixry's full-sized avatar
😴
Sleeping

Mix mnixry

😴
Sleeping
View GitHub Profile

Chinese ML Paper Reading Guide

Role and Audience

You are a senior machine learning researcher and technical columnist.

Write a Chinese reading guide for engineers and researchers who are technically capable but have not read the paper. Assume they will read in short sessions, such as during a commute or before bed.

The goal is to help readers understand the paper well enough to explain its central problem, method, findings, and limitations to someone else.

@mnixry
mnixry / endfield_launcher.py
Created October 15, 2026 17:35
Arknights: Endfield 1.6 Hypergryph Launcher detection bypass
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Launches the game with the (suspended) launcher as its parent process,
to satisfy the "must be started via the launcher" check.
game: D:\\Documents\\My Games\\EndField Game\\Endfield.exe
launcher: C:\\Program Files\\Hypergryph Launcher\\<latest version>\\Games.exe
Elevates via UAC when not already admin. Windows/Wine only, no dependencies.
@mnixry
mnixry / AGENTS.md
Last active September 3, 2026 13:07

Agent Guidelines

1. Authorization

DO

  • DO STAY WITHIN THE USER'S AUTHORIZATION.
  • Treat reviews, audits, plans, and explanations as read-only unless implementation is requested.
  • Ask only when ambiguity materially affects outcome, scope, risk, or authorization. Otherwise make a reasonable assumption and proceed.
// ==UserScript==
// @name Auto-Submitter (Multi-Page + 100 Batch Limit)
// @namespace Violentmonkey Scripts
// @match https://match.ichunqiu.com/index*
// @version 1.3
// @author -
// @description Fetches 5 pages, dedupes, and submits in batches of 100 flags per request
// @grant GM_xmlhttpRequest
// ==/UserScript==
@mnixry
mnixry / anylink.Dockerfile
Last active November 11, 2025 17:50
A more ergonomic AnyLink (https://github.com/bjdgyc/anylink) build Dockerfile.
@mnixry
mnixry / printlog.c
Created November 4, 2025 04:32
Expose Wemeet Linux version internal logs
// Usage:
// gcc ./printlog.c -shared -o libwemeet_log_override.so -fPIC -Wall -Wextra
// export LD_PRELOAD=$(realpath ./libwemeet_log_override.so)
#include <execinfo.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct {
const char *ptr;
@mnixry
mnixry / linux-cross-build-rust.nix
Created October 17, 2025 13:15
Nix snippet for cross build rust binaries to windows-gnu, linux-musl and apple-darwin.
{
lib,
pkgs,
crane,
zig_0_13,
cargo-zigbuild,
target,
rev,
}:
let
@mnixry
mnixry / replace_space_to_underscore.py
Created September 21, 2025 14:26
Replace space in string to underscore w/ x86_64 shellcode in Python.
import ctypes
import mmap
def replace_space_to_underscore(input_: str):
assert input_.isascii()
buf = ctypes.create_string_buffer(input_.encode())
shellcode = (
b"\x48\xbf"
+ ctypes.addressof(buf).to_bytes(8, "little")
@mnixry
mnixry / crontab-guru.ts
Created June 26, 2025 16:24
crontab.guru style cron syntax parser and generates explanation.
class CronTabParsingError extends Error {
static assert(condition: unknown, message: string): asserts condition {
if (!condition) {
throw new CronTabParsingError(message);
}
}
}
const ordinal = (n: number): string => {
if (n % 100 >= 11 && n % 100 <= 13) return `${n}th`;
import { cn } from "@/utils";
export const ProgressiveBlurBackground: React.FC<
React.ComponentProps<"div"> & {
orientation?: "top" | "bottom";
steps?: number;
blurTargetPx?: number;
}
> = ({
className,