Skip to content

Instantly share code, notes, and snippets.

View ZoomTen's full-sized avatar
🤔
Rabble rabble tech blabble

Zumi ZoomTen

🤔
Rabble rabble tech blabble
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Notes on uploading to MinIO through HTTP

Some definitions

iso_datetime
Date and time in ISO 8601 UTC, e.g. 20240428T051943Z = 2024-04-28 (time T) 05:19:43 (UTC Z)
iso_date
import terjemahkan
jadikan:
n = 10
untuk i dari 1..2:
jadikan: j = n + i
variabel:
a = 10
cetak "j itu ", j
@ZoomTen
ZoomTen / TAGS_M3U.md
Created February 24, 2024 16:55
!tags.m3u implementation details for GME & others

!tags.m3u

!tags.m3u is a file from the vgmstream specifications.

Global tags

Global tags start with a @ should apply to the entire set as a default value when a local tag isn't set.

  • @album: usually the game name
  • @company: map to either company, copyright, or publisher
@ZoomTen
ZoomTen / Dockerfile
Last active August 16, 2023 10:24
Furnace-devel Docker image setup
# first phase, build Furnace
FROM alpine:3.18 AS builder
RUN apk add --no-cache --update \
git cmake ninja gcc g++ alsa-lib-dev mesa-dev musl-dev
RUN git clone --recursive https://github.com/tildearrow/furnace
WORKDIR /furnace
@ZoomTen
ZoomTen / HOWTO.md
Created July 11, 2023 02:32
How to bootstrap Nim

Building the compiler

Which version do you want to install?

VERSION=v1.6.14

Clone the Nim repo

git clone --depth 1 --branch $VERSION https://github.com/nim-lang/Nim
# based on https://github.com/choltreppe/parlexgen
import std/[strutils, options, strformat]
import parlexgen, macros
type
# kinds of expressions
ExpKind = enum
expNum, # a numeric constant
# operators
# requires "regex >= 0.20.2"
import strformat
import os
import strutils
import regex
when is_main_module:
var is_in_doc: bool = false
var matches: RegexMatch
@ZoomTen
ZoomTen / scan_includes.nim
Last active August 13, 2023 11:41
Port of pret's scan-includes tool. Not quite perfect, and it's about half as fast.
# requires "regex >= 0.20.2"
import strformat, strutils
import parseopt
import os
import options
import regex
type ProgramOptions = object
strict: bool
@ZoomTen
ZoomTen / make_gbasm_docs.py
Last active July 3, 2023 11:45
Doxygen filter for Game Boy asm
#!/usr/bin/env python3
"""
below is the kind of docstrings it'll work with
it's admittedly very limited
;;
; Here's a Doxygen-format docstring.
;
; @param hl Target