Skip to content

Instantly share code, notes, and snippets.

View korrio's full-sized avatar
👽

kOrriO korrio

👽
View GitHub Profile
@korrio
korrio / budsaba-wordseg.md
Last active November 17, 2026 14:17
budsaba-wordseg.md

เทียบเนื้อเพลงต้นฉบับกับผลตัดคำ (ทีละคำ)

LATTE-WordSeg-Lite 0.1.2 (long / short / minimal) กับ PyThaiNLP newmm

10 บรรทัด · ช่วงที่ระบบตัดไม่ตรงกันรวม 34 ช่วง

  • หนึ่งแถวคือหนึ่งคำ ถ้าทุกระบบตัดตรงกัน ถ้าตัดไม่ตรงกัน แถวนั้นจะรวมช่วงที่ต่างกันไว้ และใช้ · แสดงจุดตัดภายในช่วง (ตัวหนา, ✗)
  • ⏎ คือจุดที่ต้นฉบับเว้นวรรค (จบวลี)

1. บุษบาเกิดมากับความสดใส โลกของเธอนั้นมีดอกไม้ในหัวใจ

@korrio
korrio / one-page-thinking.md
Created November 17, 2026 04:01
one-page-thinking.md
name one-page-thinking
description เรียบเรียงข้อมูลที่ซับซ้อนให้เป็นบทสรุปหน้าเดียว โดยแยกข้อเท็จจริง ข้อสรุป และสิ่งที่ต้องทำต่ออย่างชัดเจน

One-Page Thinking

เป้าหมาย

@korrio
korrio / kimi.md
Created May 1, 2026 22:54
Multi-vector attack

Summary: Your server is under an active multi-vector attack I SSH'd into 167.71.192.107 and examined the Docker containers, Odoo logs, PostgreSQL logs, system logs, a nd kernel messages. Here is what is happening and why your services are down. ──────────────────────────────────────────────────────────────────────────────────────────────────────────

  1. Current Service Status Container Status Issue ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ odoo Up (3 days) Running but returning HTTP 500 to everyone because it cannot reach the database odoo-db (PostgreSQL) Exited (139) 11 hours ago Crashed with a segmentation fault (SIGSEGV) and has n
@korrio
korrio / BOOKING-FLOWCHART.md
Created March 17, 2026 17:37
BOOKING-FLOWCHART.md

Court Booking Availability Flowchart

Overview

This document describes the complete flow of how the court booking system checks and manages court availability across single courts (DUNE, GLACIER) and combined courts (CONNECTED COURTS).

Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                         AVAILABILITY CHECK FLOW                              │
@korrio
korrio / PLAN.md
Created January 13, 2026 09:37
LINE MINI App Planning Overview

LINE MINI App Planning Overview

Sportclub CNX Court Booking Platform

Document Version: 1.0 Date: January 2026 Status: Planning Document


Table of Contents

@korrio
korrio / undo-redo-miracle.md
Created December 17, 2025 14:27
undo-redo-miracle.md

Undo/Redo System Documentation

Overview

The Brand New 20-Step Undo/Redo System is a high-performance circular buffer implementation that replaces the previous 50-step system. It features automatic state saving, thumbnail generation, and an integrated visual history stack in the Layer drawer.


Core Files

1. /lib/hooks/useUndoRedo.ts

@korrio
korrio / ads-gone.js
Created October 7, 2025 05:36
ads-gone.js
// Hide images in ad containers
document.querySelectorAll('[class*="ad"], [id*="ad"], [class*="banner"], [id*="banner"]').forEach(el => {
el.querySelectorAll('img').forEach(img => {
img.style.display = 'none';
});
});
// Also hide images with ad-related attributes
document.querySelectorAll('img').forEach(img => {
const allText = (img.src + img.alt + img.className + img.id).toLowerCase();
@korrio
korrio / FoomFakApp.tsx
Created July 15, 2025 14:08
FoomFakApp.tsx (not yet typescriptify)
import React, { useState, useEffect } from 'react';
import { Play, Pause, Square, Clock, QrCode, User, Store, Gift, Star, Check, X, Menu, Home, History, Settings, Baby, BookOpen, Mic, Timer, Users, ShoppingCart, Camera, UserCheck } from 'lucide-react';
const FoomFakApp = () => {
const [currentUser, setCurrentUser] = useState<any>(null);
const [activeTab, setActiveTab] = useState('home');
const [showLogin, setShowLogin] = useState(false);
const [showRegister, setShowRegister] = useState(false);
const [showQRScanner, setShowQRScanner] = useState(false);
const [showStoryReader, setShowStoryReader] = useState(false);
@korrio
korrio / SelfSellingNFT.sol
Created July 12, 2025 06:07
SelfSellingNFT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract SelfSellingNFT is ERC721, Ownable, ReentrancyGuard {
uint256 private _tokenIdCounter;
@korrio
korrio / optimize.js
Created June 11, 2025 04:25
Transaction size optimization techniques summary
const {
Connection,
PublicKey,
Keypair,
Transaction,
TransactionMessage,
VersionedTransaction,
AddressLookupTableAccount,
ComputeBudgetProgram,
SystemProgram,