Skip to content

Instantly share code, notes, and snippets.

View ryogrid's full-sized avatar

Ryo Kanbayashi ryogrid

View GitHub Profile
@ryogrid
ryogrid / block.html
Created May 4, 2025 06:08
ブロック崩しゲームもどき by Qwen3 8B 3bit量子化 アンド コンテキスト長くした版
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>ブロック崩しゲーム</title>
<style>
body {
margin: 0;
overflow: hidden;
@ryogrid
ryogrid / pg18_dev_250405_io_uring_pgbench_results.txt
Last active April 6, 2025 23:58
postgresのio_uringを有効にした時のパフォーマンスを見てみる
注意:まだベータにもなっていない段階のコードベースで、設定も精査せず、ベンチマーククライアントも同一マシンに置いて、とりあえず測定をしてみた、というだけのものなので、その程度のものであり、結果であるというところは、ご承知おき下さい。
●前提情報
■実施日
2025/4/5
■測定環境(自作デスクトップ)
AMD Ryzen 7 5700X 8-Core Processor 4.50 GHz
Memory 64GB
WD_Black SN770 NVMe WDS100T3X0E 1TB M.2 PCI-Express Gen4
@ryogrid
ryogrid / tracking-bug-report-status.gs
Last active April 1, 2025 23:58
Google Apps Script for pgsql-bugs ML reported bugs statuses automatic tracking (statuses are assumed by LLM)
// --- Configuration ---
// --- ここから設定 ---
// 1. Your Google Cloud Project API Key for Vertex AI (Gemini API)
// Google Cloudプロジェクトで生成したVertex AI API(Gemini API)のAPIキー
const API_KEY = ''; // <-- ここにAPIキーを貼り付けてください (Paste your API key here)
// 2. Your Google Cloud Project ID
// Google CloudプロジェクトID
const PROJECT_ID = ''; // <-- ここにプロジェクトIDを貼り付けてください (Paste your project ID here)
@ryogrid
ryogrid / .cursorrules
Created March 29, 2025 02:43 — forked from fumiya-kume/.cursorrules
.cursorrules in 2025/01/11
# .cursorrules
# Development Steps for CLI Application in Go
## 1. Overall Design
- Define the purpose and scope of the CLI application.
- Identify the target audience and their needs.
- Outline the main features and functionalities.
- Create a high-level architecture diagram.
- **Improve Specifications/Features:**
@ryogrid
ryogrid / Ollama_deepseek-r1_14b_hybrid_RAG_for_web_url.ipynb
Created February 13, 2025 14:14
LLM with deepseek-r1:14b on Ollama
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ryogrid
ryogrid / fruit.html
Created February 9, 2025 03:45
フルーツ合成パズルゲーム
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>フルーツ合成パズルゲーム</title>
<!-- Matter.js を CDN 経由で読み込み -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.19.0/matter.min.js"></script>
<style>
body { margin: 0; font-family: sans-serif; }
/* 上部の情報&操作エリア */
@ryogrid
ryogrid / answer_by_chatgpt1.md
Last active November 16, 2024 14:23
postgresで各txnはアクセスすべきバージョンにどのように到達するか

PostgreSQLのMVCCとレコードバージョンの可視性(1)

MVCCでの並行性制御とバージョンの見つけ方

PostgreSQLのMVCC(Multi-Version Concurrency Control)では、各トランザクションが見るべきレコードのバージョンを効率的に見つける仕組みとして、以下のような方法が使われています。


基本的な概念

  1. Heap Tuple:
@ryogrid
ryogrid / citus-cluster-with-docker-compse-memo.md
Last active November 13, 2024 16:25
citusをdocker-composeで動かす
@ryogrid
ryogrid / nostrp2p_on_termux.md
Last active June 3, 2024 22:47
NostrP2P server on Android Smartphone

The other day, I wrote an articleshown below, and I was thinking about whether I could prepare or have a machine that can run the server continuously.

NostrP2P: Pure P2P Distributed Microblogging System - ryo_grid's tech articles

Then, I remembered that there is an app called Termux that creates a unique Linux environment within an Android device. So, I thought it would be a good idea to use an old Android smartphone to run the server, and when I tried it, it worked perfectly!

(The idea behind Termux is that since Android is a type of Linux, by changing the root location of the file system in the shell shown to the user with chroot and placing the necessary files, you can create a unique Linux userland.)

First, referring to the sites below, install Termux via the Fdroid app.

@ryogrid
ryogrid / nostr_event.pb.go
Last active April 28, 2024 03:40
NostrのイベントデータをMessagePackとProtobufでシリアライズした時のデータサイズ
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v3.19.1
// source: np2p_event.proto
package schema
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"