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 / 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:

タイトル

第一章

@h1romas4
h1romas4 / user_profile.ps1
Created February 27, 2023 12:38
PowerShell の Profile
# code $PROFILE.CurrentUserCurrentHost
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\paradox.omp.json" | Invoke-Expression
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -BellStyle None
Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar
@h1romas4
h1romas4 / mame_c_cpp_properties.md
Last active February 10, 2023 15:41
MAME 向け VS Code の c_cpp_properties

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Linux",
            "intelliSenseMode": "gcc-x64",
            "cStandard": "c11",
            "cppStandard": "c++17",
@h1romas4
h1romas4 / c_cpp_properties.json
Created December 19, 2022 05:53
VS Code C/C++ setting for MAME
{
"configurations": [
{
"name": "Linux",
"intelliSenseMode": "gcc-x64",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${workspaceFolder}/src/**",
"${workspaceFolder}/3rdparty/**",
@h1romas4
h1romas4 / launch.json
Created December 10, 2022 11:46
Project in DeZog/MAME
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "dezog",
"request": "launch",
"name": "DeZog",
@h1romas4
h1romas4 / add-support-msx-cbios.patch
Last active November 23, 2022 11:13
build MAME for MSX C-BIOS support
diff --git a/src/mame/mame.lst b/src/mame/mame.lst
index 47df942731c..fd11ec76d5f 100644
--- a/src/mame/mame.lst
+++ b/src/mame/mame.lst
@@ -31402,6 +31402,7 @@ canonv20f //
canonv20g //
canonv20s //
canonv8 //
+cbiosm1jp // C-BIOS MSX
cf1200 // 1984 MSX Japan