Skip to content

Instantly share code, notes, and snippets.

View koron's full-sized avatar
🐱
meow

MURAOKA Taro koron

🐱
meow
View GitHub Profile
@koron
koron / Makefile
Created February 28, 2026 15:13
pending prepared を使うと httpfs + parquet の呼び出しが失敗する例
DUCKDB_DIR=../duckdb-go-bindings/lib/windows-amd64
#DUCKDB_DIR=../duckdb-go-bindings/lib/linux-amd64
#DUCKDB_DIR=../duckdb-go-bindings/lib/darwin-arm64
CFLAGS=-I${DUCKDB_DIR} -DDUCKDB_STATIC_BUILD
LDLIBS= \
-lduckdb_static \
-lautocomplete_extension \
-lcore_functions_extension \
-licu_extension \
@koron
koron / Makefile
Created February 27, 2026 15:12
This is a C example of DuckDB that accesses parquet files on a server that does not return Content-Length to the HEAD method. By linking it to the pre-built library included in duckdb/duckdb-go-bindings and running it, we can confirm that the library itself is free of defects.
DUCKDB_DIR=../duckdb-go-bindings/lib/windows-amd64
#DUCKDB_DIR=../duckdb-go-bindings/lib/linux-amd64
#DUCKDB_DIR=../duckdb-go-bindings/lib/darwin-arm64
CFLAGS=-I${DUCKDB_DIR} -DDUCKDB_STATIC_BUILD
LDLIBS= \
-lduckdb_static \
-lautocomplete_extension \
-lcore_functions_extension \
-licu_extension \
@koron
koron / Makefile
Created February 27, 2026 14:16
C (MSYS2 + UCRT64) で duckdb を使って Content-Length を返さないサーバーの parquet にアクセスしてみた
LDLIBS=-lduckdb
main: main.c
clean:
rm -f *.o
rm -f main
@koron
koron / llamacpp-cachedir-strategy.md
Created December 5, 2025 02:05
How the cache directory for llama.cpp is determined

llama.cppのキャッシュディレクトリの選択はこんな感じ。優先順位順

  1. $LLAMA_CACHE if defined,
  2. Platform-specific defaults
    • on Windows: %LOCALAPPDATA%\llama.cpp
    • on Mac: ~/Library/Caches/llama.cpp/
    • on Linux:
      • $XDG_CACHE_HOME/llama.cpp if defined
      • ~/.cache/llama.cpp
@koron
koron / index.html
Last active April 30, 2025 08:39
duckdb-wasmをペライチで利用するサンプル
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/css/xterm.min.css">
<style>
body {
background-color: rgb(51, 51, 51);
}
#shell-container {
width: 100%;
height: 100%;
}
@koron
koron / 0_README.md
Last active March 18, 2025 02:26
GitHub Actionsで行われていた攻撃の解析
@koron
koron / setup-mouse
Created November 4, 2024 04:20
A shell script to set mouse resolution for Logi using https://github.com/cvuchener/hidpp
#!/bin/bash
set -eu
device="MX Anywhere 3"
get=0
resolution=1500
verbose=0
while getopts d:gr:v OPT ; do
@koron
koron / test1.c
Last active January 12, 2024 14:07
foo() と foo(void) の違いを示す例
int foo();
void caller() {
foo();
}
/* コンパイルは通る */
@koron
koron / a5book-theme.yml
Created January 4, 2024 14:30
asciidoctor-pdf 2.3 のCJK theme
extends: default-with-font-fallbacks
font:
catalog:
merge: true
BIZ UDPGothic:
normal: BIZUDPGothic-Regular.ttf
bold: BIZUDPGothic-Bold.ttf
italic: BIZUDPGothic-Regular.ttf
bold_italic: BIZUDPGothic-Bold.ttf
import java.util.List;
import java.util.ArrayList;
public class PnJava {
int[] primes = new int[5761455];
int primeLast = 0;
void addPrime(int n) {
primes[primeLast] = n;