Skip to content

Instantly share code, notes, and snippets.

View Th0rgal's full-sized avatar
🕶️

Thomas Marchand Th0rgal

🕶️
View GitHub Profile
@Th0rgal
Th0rgal / gist:36a8486190044bf174208e458234825a
Created May 14, 2026 00:44
Unlink Security Audit Fixes (1dc2ffb)
From 1dc2ffbbc53973b83f317e900674455eda74d3a2 Mon Sep 17 00:00:00 2001
From: "Thomas Marchand (agent)" <agent@thomas.md>
Date: Thu, 14 May 2026 02:33:25 +0200
Subject: [PATCH] fix(security): restore all audit security remediations (from
stash)
---
.env.example | 3 +-
.github/workflows/ci.yml | 21 -
.github/workflows/contracts.yml | 2 +
@Th0rgal
Th0rgal / security-fixes-restore-1dc2ffb.patch
Created May 14, 2026 00:44
Unlink Security Audit Fixes - Single Commit Restore (1dc2ffb, 2026-05-14)
From 1dc2ffbbc53973b83f317e900674455eda74d3a2 Mon Sep 17 00:00:00 2001
From: "Thomas Marchand (agent)" <agent@thomas.md>
Date: Thu, 14 May 2026 02:33:25 +0200
Subject: [PATCH] fix(security): restore all audit security remediations (from
stash)
---
.env.example | 3 +-
.github/workflows/ci.yml | 21 -
.github/workflows/contracts.yml | 2 +
@Th0rgal
Th0rgal / final-consolidated-report.md
Created May 13, 2026 19:55
Verity Security Audit Report - 2026-05-13

Security Audit — Final Consolidated Report

Mission ID: d29546d5-0d67-45be-a07a-7d7a1c3dd1be
Branch: 7617b3eebcf37ab42124fe570eb7e065cf8c8461 (post-audit-locked)
Date: 2026-05-13 (Final Consolidated)
Status: ✅ Complete — All findings documented; 79 total findings; 5 HIGH deferred for pre-mainnet remediation


Executive Summary

@Th0rgal
Th0rgal / SKILL.md
Created February 9, 2026 08:00
Rich file sharing for sandboxed.sh

Rich File Sharing

Share files and images with rich inline previews using component tags.

Image preview

<image path="./chart.png" alt="Sales chart" />
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"google_auth": false,
"agents": {
"librarian": {
"model": "spark/coding"
},
"explore": {
"model": "spark/fast"
},
@Th0rgal
Th0rgal / 00_overview_alt.png
Last active January 14, 2026 22:19
Flatpak/Linux demo media for flathub/flathub#7454
00_overview_alt.png
@Th0rgal
Th0rgal / minecraft_server_jar_downloader_api_guide.md
Last active December 28, 2025 17:33
The Ultimate Minecraft Server Jar Downloader Script (Paper, Spigot, Vanilla, etc) - Updated 2026

🚀 Ultimate Minecraft Server Jar Downloader & API Guide

Stop manually hunting for jar files. Whether you run a hosting company, a private SMP, or develop plugins, you need a reliable way to get the latest server software.

This guide provides scripts and endpoints to automatically fetch the latest builds of Paper, Spigot, Purpur, Vanilla, and Bedrock using the mcserverjars.com infrastructure.


⚡ Why use a centralized API?

  • Automation: Great for Docker containers, startup scripts, and panels (Pterodactyl).
@Th0rgal
Th0rgal / brain-damage-prevention.txt
Last active June 14, 2025 06:58
System prompt which stops AI from rotting your brain with "Great question!"
Tone & Length
- Keep a warm, natural voice in casual or advice chats; a few sentences often suffice.
- Answer simple questions briefly; give detailed, example-rich replies to complex ones.
Formatting Rules
- In chit-chat: no markdown and no lists.
- Use markdown bullets only when the user explicitly asks for a list or ranking; keep each bullet 1–2 sentences.
- For reports, documents, or technical writing, write in paragraphs with inline lists (“x, y, and z”); avoid bullets, numbering, and bold overuse.
- Never use em dashes (—). Instead of dashes for parenthetical thoughts, use commas, periods to split sentences, or parentheses.
@Th0rgal
Th0rgal / felt_to_hex.rs
Created August 2, 2023 13:33
An efficient function to convert a FieldElement in a fixed size hexadecimal representation
pub fn to_hex(felt: FieldElement) -> String {
let bytes = felt.to_bytes_be();
let mut result = String::with_capacity(bytes.len() * 2 + 2);
result.push_str("0x");
for byte in bytes {
write!(&mut result, "{:02x}", byte).unwrap();
}
result
}