Skip to content

Instantly share code, notes, and snippets.

View listout's full-sized avatar

Brahmajit Das listout

View GitHub Profile
@listout
listout / firefox_tweak.md
Last active November 2, 2025 12:48
Firefox config that supposedly has less load on CPU?

There is an old thread during development of SeaMonkey browser discussing about these two settings in about:config that supposedly cuts CPU load by a notable margin:

network.buffer.cache.count = 128
network.buffer.cache.size = 262144

128x262144 Bytes=32 MB of buffer

@listout
listout / vartmpportagesys-authlibfprint-1.94.9-r1tempbuild.log
Created September 22, 2025 05:34
/var/tmp/portage/sys-auth/libfprint-1.94.9-r1/temp/build.log
* Package: sys-auth/libfprint-1.94.9-r1:2
* Repository: gentoo
* Maintainer: [email protected]
* Upstream: https://gitlab.freedesktop.org/libfprint/wiki/-/issues
* USE: abi_x86_64 amd64 elibc_glibc examples introspection kernel_linux tod
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Package: sys-auth/libfprint-1.94.9-r1:2
* Repository: gentoo
* Maintainer: [email protected]
* Upstream: https://gitlab.freedesktop.org/libfprint/wiki/-/issues
@listout
listout / $ git diff --no-index .config .config.old;
Created September 17, 2025 17:47
$ git diff --no-index .config .config.old;
$ git diff --no-index .config .config.old
diff --git a/.config b/.config.old
index 73a86456b057..da614989c48c 100644
--- a/.config
+++ b/.config.old
@@ -1,18 +1,19 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 6.15.0 Kernel Configuration
+# Linux/x86_64 6.15.0 Kernel Configuration
@listout
listout / tmpbuild.log
Created August 30, 2025 01:45
/tmp/build.log
This file has been truncated, but you can view the full file.
* Package: www-client/firefox-142.0.1:rapid
* Repository: gentoo
* Maintainer: [email protected]
* USE: X abi_x86_64 amd64 clang dbus elibc_glibc gmp-autoupdate gnome-shell hwaccel jack jumbo-build kernel_linux libproxy llvm_slot_20 openh264 pgo pulseaudio sndio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-png system-webp wayland wifi
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Checking for at least 14300 MiB disk space at "/var/tmp/portage/www-client/firefox-142.0.1/temp" ...
[ ok ]
* Checking whether Rust 9999 is suitable ...
* Checking for dev-lang/rust:9999 ...
* Checking for dev-lang/rust-bin:9999 ...
@listout
listout / .config
Last active July 3, 2025 00:33
arm64 dmesg and boot logs for patch btrfs: replace deprecated strcpy with strscpy
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 6.16.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-unknown-linux-gnu-gcc (Gentoo 14.4.9999 p, commit 6daca622f1773923ccb770f7e8c4b24d53a7920f) 14.3.1 20250527 85f466ed0d4da336fadd01e43d764326cbabdecb"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140301
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
@listout
listout / readme.md
Last active July 3, 2025 16:24
Kernel development setup with qemu and buildroot

Clone the kernel git repo

git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Build a minimal kernel image

cd linux
make x86_64_defconfig
make kvm_guest.config
>> ./scripts/decode_stacktrace.sh vmlinux /home/bdas/linux < /home/bdas/linux/test.log
[ 87.540059][ T5424] FAULT_INJECTION: forcing a failure.
[ 87.540059][ T5424] name failslab, interval 1, probability 0, space 0, times 1
[ 87.575104][ T5424] CPU: 0 UID: 0 PID: 5424 Comm: syz-executor428 Not tainted 6.15.0-rc4-syzkaller-00051-g7a13c14ee59d #0 PREEMPT(full)
[ 87.575121][ T5424] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 87.575127][ T5424] Call Trace:
[ 87.575132][ T5424] <TASK>
[ 87.575138][ T5424] dump_stack_lvl (lib/dump_stack.c:123)
[ 87.575257][ T5424] ? __pfx_dump_stack_lvl (lib/dump_stack.c:104)
[ 87.575272][ T5424] ? __pfx__printk (kernel/printk/printk.c:2470)
@listout
listout / Kconfig
Last active October 13, 2025 05:39
Kernel config for Thinkpad P15
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.17.1-gentoo Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Gentoo 15.2.0 p5) 15.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=150200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24500
@listout
listout / Kconfig
Last active April 21, 2025 08:34
Kernel config for Thinkpad E14
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 6.15.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Gentoo 15.0.1_pre20250413 p54) 15.0.1 20250413 (experimental)"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=150001
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
@listout
listout / .clang-format
Last active July 8, 2024 11:39
ESP-IDF .clangd and .clang-format
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: false
AlignOperands: true
AlignTrailingComments: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterReturnType: AllDefinitions
BinPackArguments: false
BinPackParameters: false