Skip to content

Instantly share code, notes, and snippets.

@masakielastic
masakielastic / README.md
Last active February 21, 2026 21:38
PIE (PHP Installer for Extensions) で PHP 拡張モジュールをビルドする

PIE (PHP Installer for Extensions) で PHP 拡張モジュールをビルドする

php-ext-hello という拡張モジュールがローカルにあることを前提とします。

composer.json

PHP 拡張モジュールのフォルダーに composer.json を設置します。

@masakielastic
masakielastic / README.md
Last active February 21, 2026 17:50
Debian で HTTP サーバーの H2O をビルドする

Debian で HTTP サーバーの H2O をビルドする

Debian 13 (trixie) では H2O のパッケージが用意されなくなったので、自分でビルドする必要があります。

依存パッケージの導入

@masakielastic
masakielastic / README.md
Created February 21, 2026 03:27
VOICEVOX Core で Rust で使う

VOICEVOX Core で Rust で使う

前提環境

Debian 12 (Chromebook)

再生プレイヤー

@masakielastic
masakielastic / README.md
Last active February 21, 2026 02:14
ripht-php-sapi を使って Rust から PHP を実行する

ripht-php-sapi を使って Rust から PHP を実行する

php-src のビルド

mkdir -p ~/.ripht/src ~/.ripht/php
cd ~/.ripht/src
@masakielastic
masakielastic / README.md
Created February 21, 2026 00:30
PIE を Debian (Chromebook) にインストールする

PIE を Debian (Chromebook) にインストールする

Github の gh コマンドを使います。

sudo apt install gh -y
@masakielastic
masakielastic / README.md
Last active February 20, 2026 23:28
Composer で Rust 製の HTTP サーバーの CLI を管理する

 Composer で Rust 製の HTTP サーバーの CLI を管理する

構成

  • composer.json
  • rust/Cargo.toml
@masakielastic
masakielastic / glm-image.md
Created January 15, 2026 02:26
GLM Image のテスト
A Hasselblad film–style portrait set in soft indoor lighting.

A long-haired woman stands near a window, partially turned away,
caught in a quiet, unguarded moment rather than posing.
Her posture is slightly off-balance, with subtle asymmetry in her shoulders and neck,
as if she shifted her weight unconsciously.

Branches outside the window sway in the breeze,
casting uneven, dappled light across her face and collarbone.
@masakielastic
masakielastic / README.md
Created December 27, 2025 03:18
Symfony 8 系で Hello World

Symfony 8 系で Hello World

Chromebook の Linux 環境。

最初に PHP 拡張をチェックします。

PHP 拡張のチェック

@masakielastic
masakielastic / README.md
Created December 27, 2025 00:06
Chromebook で Composer をインストールする (IPv6 対応)

Chromebook で Composer をインストールする (IPv6 対応)

Chromebook の Linux 環境では IPv6 が原因で Composer 自身や Composer 経由でのパッケージをインストールできないことがあります。 一時的に無効にするには次のコマンドを実行します。

sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
@masakielastic
masakielastic / README.md
Last active December 26, 2025 21:27
Next.js で Hello World

Next.js で Hello World

プロジェクトを作成します。

npx create-next-app@latest hello-next

使う機能の質問がされるので、次の選択肢を選びました。