Skip to content

Instantly share code, notes, and snippets.

View umjammer's full-sized avatar

Naohide Sano umjammer

View GitHub Profile
@umjammer
umjammer / pc100.patch
Last active August 20, 2026 05:34
[pc-100] dedicated makefile & patch for macos w/ sdl2 for common source code project for 2025-11-09
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..21efb0c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.rom
+*.ROM
+tmp/
+pc100
Build starting...
Build image: default
Start: Mon Jul 6 08:49:45 UTC 2026 93134db150e4
Git:
nightly-0-ged0fc3e
commit ed0fc3e72b28dbe8342e83dd6f0f26738bf21879
Author: GrenderG
Date: Thu May 28 20:20:18 2026 +0200
Bump version.
@umjammer
umjammer / sdlnp21kai.diff
Last active August 19, 2026 06:53
[np2kai] screen x2 patch for sdl2 version git:da21965
diff --git a/sdl/scrnmng.c b/sdl/scrnmng.c
index 1d59b5b..ac8ff22 100755
--- a/sdl/scrnmng.c
+++ b/sdl/scrnmng.c
@@ -75,6 +75,8 @@ static BRESULT calcdrawrect(DRAWRECT *dr, const RECT_T *rt) {
return(SUCCESS);
}
+int screen_scale = 2;
+
@umjammer
umjammer / jpomclasspath.sh
Created September 7, 2024 20:26
[java] print all dependency jars in pom.xml using delimiter ':'
#!/bin/bash
if [ ! -e pom.xml ]; then
echo no pom.xml
exit 1
fi
result=""
while read line; do
@umjammer
umjammer / git_move_subtree.md
Last active February 5, 2024 23:56
[git] move subtree inter projects

Git move subtree inter projects

  • at repo-1
cd repo-1
git subtree split -P dir-to-move -b <split>
  • at repo-2
@umjammer
umjammer / uber_jar.md
Last active January 13, 2024 10:09
🚧 [Java] Uber Jar, Fat Jar, Shade, Jars in Jar
@umjammer
umjammer / DeDRM on MacOS Ventura Sonoma.md
Last active November 24, 2023 20:35
[Kindle] DeDRM on MacOS Ventura/Sonoma

DeDRM on MacOS Ventura/Sonoma

we need

  • a emulator image for arm 32bit
  • the old Android Kindle apk
  • adb 1.0.31

A emulator image for arm 32bit

@umjammer
umjammer / DeDRM on MacOS Monterey.md
Last active April 3, 2023 00:04
[Kindle] DeDRM on MacOS Monterey

DeDRM on MacOS Monterey

we need the old Android Kindle apk.

Old Android Kindle apk

  • Kindle version 4.16.0.75 for Android
    • install the apk into the device (emulator android 11 is fine also)
    • execute Kindle.app
    • download contents
@umjammer
umjammer / bing ai chat on chrome.md
Last active March 27, 2023 00:55
[chatgpt] bing ai chat on chrome

Bing AI Chat on Chrome

at 2023-03-27

killing f*ckin font

  • css
@umjammer
umjammer / hs_err_pid92309.log
Created February 7, 2023 16:40
[java] does anyone report a bug attached?
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000001032daa9d, pid=92309, tid=0x0000000000005603
#
# JRE version: Java(TM) SE Runtime Environment (8.0_341-b10) (build 1.8.0_341-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.341-b10 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x57aa9d]
#