Skip to content

Instantly share code, notes, and snippets.

View h1romas4's full-sized avatar
🍕
< Pizza Time

hiromasa h1romas4

🍕
< Pizza Time
View GitHub Profile
@h1romas4
h1romas4 / README.md
Last active August 3, 2026 13:54
PC-88VA PC-Engine にマウント可能な .d88 イメージの生成手順

PC-88VA PC-Engine にマウント可能な .d88 イメージの作成手順

ツール

  • mkfs.fat - Ubuntu 26.04 LTS (Windows の場合は WSL2 にて)
  • Python3
  • d88toolg
  • fat12_cluster_delta.py - PC88VA (PC-Engine)? 用の FAT クラスターパッチ(本 gist に添付)
  • mcopy
@h1romas4
h1romas4 / Core.csproj
Last active July 12, 2026 06:08
mml2vgm Core for .NET Core 10 patch
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>Core</RootNamespace>
<AssemblyName>Core</AssemblyName>
<Platforms>AnyCPU</Platforms>
<!-- repository supplies AssemblyInfo.cs -->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<!-- Prevent SDK from auto-generating TargetFrameworkAttribute (avoids duplicate attribute errors) -->
@h1romas4
h1romas4 / my-posh-theme.omp.json
Last active July 23, 2026 07:45
my-posh-theme.omp.json
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#e95420",
"foreground": "#011627",
"leading_diamond": "\ue0b6",
@h1romas4
h1romas4 / .clangd
Last active December 22, 2025 02:59
PlatformIO: Fix compile_commands for clangd (`pio_fix_compiledb.py` + `.clangd`)
CompileFlags:
Compiler: xtensa-esp32s3-elf-gcc
Add: [-DEXAMPLE_DEFINE1=1, -DEXAMPLE_DEFINE2]
Remove:
- -m*
- -fstrict-volatile-bitfields
- -fno-tree-switch-conversion
CompilationDatabase: .pio/build/esp32-s3-devkitc-1
@h1romas4
h1romas4 / slash.js
Created May 25, 2025 10:41
スラドのぐるぐる補完
<script type="text/javascript">
const aregeword = ['アレゲはアレゲ以上のなにものでもなさげ -- アレゲ研究家',
'吾輩はリファレンスである。名前はまだ無い -- perlの中の人',
'犯人は巨人ファンでA型で眼鏡をかけている -- あるハッカー',
'犯人はmoriwaka -- Anonymous Coward',
'クラックを法規制強化で止められると思ってる奴は頭がおかしい -- あるアレゲ人',
'日本発のオープンソースソフトウェアは42件 -- ある官僚',
'あつくて寝られない時はhackしろ! 386BSD(98)はそうやってつくられましたよ? -- あるハッカー',
'未知のハックに一心不乱に取り組んだ結果、私は自然の法則を変えてしまった -- あるハッカー',
'皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー',
@h1romas4
h1romas4 / crop9_montage3x3.sh
Created May 2, 2025 17:17
A Bash script to crop 9 images and create a 3x3 montage using ImageMagick
#!/bin/bash
#
# ./crop9_montage3x3.sh souryoku_20250502/char 1265x1265+1422+366 result_char.png
# ./crop9_montage3x3.sh souryoku_20250502/mamono 1284x1284+1323+169 result_mamono.png
#
# Get the absolute path to the script's directory and set tmp directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TMP_DIR="$SCRIPT_DIR/tmp"
@h1romas4
h1romas4 / CMakeLists.txt
Created April 20, 2025 01:27
[pletter.cpp](https://www.xl2s.tk/) for GCC
cmake_minimum_required(VERSION 3.10)
project(Pletter)
set(CMAKE_CXX_STANDARD 11)
include_directories(src)
add_executable(pletter src/pletter.cpp)
@h1romas4
h1romas4 / boot.log
Last active August 17, 2024 07:38
esp32p4 boot log
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
: 1
I (209) app_init: Compile time: Aug 17 2024 14:55:33
I (215) app_init: ELF f�ESP-ROM:esp32p4-eco1-20240205
Build:Feb 5 2024
rst:0x1 (POWERON),boot:0x30f (SPI_FAST_FLASH_BOOT)
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x17fc
load:0x4ff2abd0,len:0xcf8
load:0x4ff2cbd0,len:0x2fb4
@h1romas4
h1romas4 / eeebook-dmesg-ubuntu-6.2.0-63-generic.log
Created November 5, 2023 09:06
ASUS EeeBook X205TA dmesg with Ubuntu 22.04.3 6.2.0-63-generic
[ 0.000000] microcode: microcode updated early to revision 0x838, date = 2019-04-22
[ 0.000000] Linux version 6.2.0-36-generic (buildd@lcy02-amd64-050) (x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 (Ubuntu 6.2.0-36.37~22.04.1-generic 6.2.16)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-36-generic root=UUID=1df7fe23-da78-4f7c-a518-44120065bf54 ro quiet splash snd_intel_dspcfg.dsp_driver=1 vt.handoff=7
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] BIOS-provided physical RAM map:

タイトル

第一章