Skip to content

Instantly share code, notes, and snippets.

View akku1139's full-sized avatar
🔥
Translating Hono docs

-akku- akku1139

🔥
Translating Hono docs
View GitHub Profile
@akku1139
akku1139 / sekigae.py
Last active April 18, 2025 03:29
席替えするプログラム
import random
# 目が悪い人の出席番号
warui = [2, 5, 30]
# 出席番号一覧
no = [*range(1, 41)]
# 新しい席順 (前半)
new = [""]*20
@akku1139
akku1139 / createSignal1.js
Created March 1, 2025 15:18
GeminiにcreateSignal作らせた
function createSignal(value) {
const subscribers = new Set();
const read = () => {
if (currentComponent) {
subscribers.add(currentComponent);
}
return value;
};
@akku1139
akku1139 / movePage.js
Created February 28, 2025 00:44
aタグをクリックしたときにリロードせずページ遷移できる
document.addEventListener("click", (e) => {
if(e.target.tagName === "A" && new URL(e.target.href).origin === location.origin) {
fetch(e.target.href).then((r) =>
r.text().then((t) => {
history.pushState(null, null, e.target.href);
document.documentElement.innerHTML = t;
})
);
e.preventDefault();
}
// ==UserScript==
// @name Save to Cosense
// @description クリックするとCosenseにページを保存します
// @homepageURL https://gist.github.com/akku1139/da9b6e1127b3d419062bd2abb3062812
// @license Unlicense
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_registerMenuCommand
F/libc    (  213): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbe79cff8 in tid 213 (surfaceflinger)
F/libc    (  213): Unable to open connection to debuggerd: Connection refused
E/Surface (  231): queueBuffer: error queuing buffer to SurfaceTexture, -32

These logcat errors indicate a crash within the Android system's surfaceflinger process, which is responsible for managing display surfaces. Let's break down each error:

F/libc ( 213): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbe79cff8 in tid 213 (surfaceflinger)

以下のエラーを説明してください

F/libc    (  125): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbe519ff8 in tid 125 (surfaceflinger)
F/libc    (  125): Unable to open connection to debuggerd: Connection refused
E/Surface (  175): queueBuffer: error queuing buffer to SurfaceTexture, -32
W/SurfaceComposerClient(  175): ComposerService remote (surfaceflinger) died [0xb5c791c0]
E/IMGSRV  (  175): :0: QueueCancelBufferWrapper: Failed to queue buffer 0xb5464208
D/BootAnimation(  175): SurfaceFlinger died, exiting...
I/ServiceManager( 122): service 'SurfaceFlinger' died
/* タブクローズボタン無効化 */
.tab-close-button {
display: none;
}
/* タブバーを細く */
#TabsToolbar-customization-target {
height: 30px;
}
.tab-background {
diff --git a/linker/linker.cpp b/linker/linker.cpp
index cf65705..ed5ebf2 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1117,17 +1117,52 @@ static int soinfo_relocate(soinfo* si, ElfW(Rela)* rela, unsigned count, soinfo*
break;
case R_AARCH64_COPY:
- /*
- * ET_EXEC is not supported so this should not happen.
@akku1139
akku1139 / TWRP
Last active February 10, 2025 05:45
Builtin Kernel Modules - Lenovo b8000-f
~ # find /dev
/dev
/dev/.coldboot_done
/dev/ttyMT3
/dev/ttyMT2
/dev/ttyMT1
/dev/ttyMT0
/dev/ttyGS3
/dev/ttyGS2
/dev/ttyGS1
/* https://github.com/noisyBrain/dots/blob/badec5adda8ce670b43d033278fc28d164f9b4e8/vimium.conf#L26 */
/* Vimium-material-alpenglow */
/*
To use:
1. Copy the code.
2. Go to the Vimium options.
3. Click Show Advanced Options.