Skip to content

Instantly share code, notes, and snippets.

View JustCauseWhyNot's full-sized avatar

JustCauseWhyNot JustCauseWhyNot

View GitHub Profile
@JustCauseWhyNot
JustCauseWhyNot / $ journalctl -b;
Created February 13, 2026 22:35
$ journalctl -b;
$ journalctl -b
Feb 13 15:26:02 jcwn kernel: Linux version 6.18.9-gentoo (root@jcwn) (gcc (Gentoo 15.2.1_p20251122 p4) 15.2.1 20251122, GNU ld (Gentoo 2.45.1 p1) 2.45.1) #4 SMP PREEMPT Wed Feb 11 03:40:11 MST 2026
Feb 13 15:26:02 jcwn kernel: Command line: root=/dev/nvme1n1p2 #quiet #loglevel=0 #systemd.show_status=auto #rd.udev.log_level=3 #vt.global_cursor_default=0 drm.edid_firmware=DP-1:edid/27g1s240hz.bin drm.edid_firmware=DP-2:edid/27g1s240hz.bin systemd.machine_id=ea7f2315ea5d403887a9a120bb333c7e
Feb 13 15:26:02 jcwn kernel: KERNEL supported cpus:
Feb 13 15:26:02 jcwn kernel: AMD AuthenticAMD
Feb 13 15:26:02 jcwn kernel: x86/split lock detection: #DB: warning on user-space bus_locks
Feb 13 15:26:02 jcwn kernel: BIOS-provided physical RAM map:
Feb 13 15:26:02 jcwn kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
Feb 13 15:26:02 jcwn kernel: BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Feb 13 15:26:02 jcwn kernel: BIOS-e820: [mem 0x0000000000100000-0x0000000009af
@JustCauseWhyNot
JustCauseWhyNot / $ doas lspci -vv;
Created January 5, 2026 02:18
$ doas lspci -vv;
$ doas lspci -vv
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Root Complex
Subsystem: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Root Complex
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge IOMMU
Subsystem: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge IOMMU
Control: I/O- Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
@JustCauseWhyNot
JustCauseWhyNot / $ journalctl -b | rg -A 5 swap;
Created December 26, 2025 00:59
$ journalctl -b | rg -A 5 swap;
$ journalctl -b | rg -A 5 swap
Dec 25 17:57:22 jcwn kernel: Spectre V1 : Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers
Dec 25 17:57:22 jcwn kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Dec 25 17:57:22 jcwn kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Dec 25 17:57:22 jcwn kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Dec 25 17:57:22 jcwn kernel: x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask'
Dec 25 17:57:22 jcwn kernel: x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256'
--
Dec 25 17:57:23 jcwn systemd[1]: Starting Create swap on /dev/zram0...
Dec 25 17:57:23 jcwn zram-generator[442]: Error: Failed to configure write-back device into /sys/block/zram0/backing_dev
@JustCauseWhyNot
JustCauseWhyNot / output
Created December 23, 2025 09:55
output
❯ ./build.sh
╔═══════════════════════════════════════════════════════════════════════╗
║ Build Configuration ║
╚═══════════════════════════════════════════════════════════════════════╝
1) Build everything statically (ffms2) with TQ
2) Build dynamically (requires ffms2, vship installed) with TQ
3) Build statically without TQ (no vship)
4) Build dynamically without TQ (requires ffms2 only)
@JustCauseWhyNot
JustCauseWhyNot / varlogportagebuildapp-mobilephonescrcpy-3.3.3:20251217-162237.log
Created December 17, 2025 16:30
/var/log/portage/build/app-mobilephone/scrcpy-3.3.3:20251217-162237.log
* Package: app-mobilephone/scrcpy-3.3.3:0
* Repository: gentoo
* Maintainer: voyageur@gentoo.org
* Upstream: https://github.com/Genymobile/scrcpy/issues
* USE: X abi_x86_64 amd64 elibc_glibc kernel_linux wayland
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking 'scrcpy-3.3.3.tar.gz' to /var/tmp/portage/app-mobilephone/scrcpy-3.3.3/work
=== Skipping unpack of 'scrcpy-server-v3.3.3'
>>> Source unpacked in /var/tmp/portage/app-mobilephone/scrcpy-3.3.3/work
@JustCauseWhyNot
JustCauseWhyNot / $ emerge --info =dev-langrust-9999::gentoo && emerge -p =dev-langrust-9999::gentoo;
Created December 5, 2025 05:10
$ emerge --info =dev-lang/rust-9999::gentoo && emerge -p =dev-lang/rust-9999::gentoo;
$ emerge --info =dev-lang/rust-9999::gentoo && emerge -p =dev-lang/rust-9999::gentoo
Portage 3.0.72 (python 3.13.9-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-15, glibc-2.42-r2, 6.17.7-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.17.7-gentoo-x86_64-AMD_Ryzen_7_9800X3D_8-Core_Processor-with-glibc2.42
KiB Mem: 48393636 total, 11631688 free
KiB Swap: 24196604 total, 24010436 free
Timestamp of repository gentoo: Sat, 22 Nov 2025 03:00:53 +0000
Head commit of repository gentoo: 523019053b1866863b307ce3f23be3904b11362c
@JustCauseWhyNot
JustCauseWhyNot / varlogportagebuilddev-langrust-9999:20251205-050014.log
Created December 5, 2025 05:04
/var/log/portage/build/dev-lang/rust-9999:20251205-050014.log
* Package: dev-lang/rust-9999:9999
* Repository: gentoo
* Maintainer: rust@gentoo.org navi@vlhl.dev
* USE: abi_x86_64 amd64 cpu_flags_x86_sse2 elibc_glibc kernel_linux llvm_slot_21 llvm_targets_AMDGPU llvm_targets_NVPTX llvm_targets_X86 lto rust-src system-llvm
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* Checking for at least 9216 MiB disk space at "/var/tmp/portage/dev-lang/rust-9999/temp" ...
[ ok ]
* Checking whether python3_14 is suitable ...
* dev-lang/python:3.14 ...
[ ok ]
@JustCauseWhyNot
JustCauseWhyNot / Makefile
Created December 4, 2025 09:57
Makefile
current_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
PREFIX ?= /usr/local
DESTDIR ?=
HIPARCH := gfx1201,gfx1100,gfx1101,gfx1102,gfx1103,gfx1151,gfx1012,gfx1030,gfx1031,gfx1032,gfx906,gfx801,gfx802,gfx803
ifeq ($(OS),Windows_NT)
dllend := .dll
exeend := .exe
@JustCauseWhyNot
JustCauseWhyNot / varlogportagebuildmedia-libsopencv-4.12.0-r1:20251117-075257.log
Created November 17, 2025 07:57
/var/log/portage/build/media-libs/opencv-4.12.0-r1:20251117-075257.log
* Package: media-libs/opencv-4.12.0-r1:0/4.12.0
* Repository: gentoo
* Maintainer: negril.nx+gentoo@gmail.com proxy-maint@gentoo.org
* USE: abi_x86_64 amd64 avif contrib contribdnn cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512_bitalg cpu_flags_x86_avx512_vbmi2 cpu_flags_x86_avx512_vnni cpu_flags_x86_avx512_vpopcntdq cpu_flags_x86_avx512bw cpu_flags_x86_avx512cd cpu_flags_x86_avx512dq cpu_flags_x86_avx512f cpu_flags_x86_avx512ifma cpu_flags_x86_avx512vbmi cpu_flags_x86_avx512vl cpu_flags_x86_f16c cpu_flags_x86_fma3 cpu_flags_x86_popcnt cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3 cuda eigen elibc_glibc features2d ffmpeg gif jpeg jpeg2k kernel_linux opengl openmp png python_targets_python3_13 qt6 tiff truetype vaapi vulkan wayland webp
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking 'opencv-4.12.0.tar.gz' to /var/tmp/portage/media-libs/opencv-4.12.0-r
@JustCauseWhyNot
JustCauseWhyNot / $ emerge --info =media-libsopencv-4.12.0-r1::gentoo && emerge -p =media-libsopencv-4.12.0-r1::gentoo;
Created November 17, 2025 07:55
$ emerge --info =media-libs/opencv-4.12.0-r1::gentoo && emerge -p =media-libs/opencv-4.12.0-r1::gentoo;
$ emerge --info =media-libs/opencv-4.12.0-r1::gentoo && emerge -p =media-libs/opencv-4.12.0-r1::gentoo
Portage 3.0.71 (python 3.13.9-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-15, glibc-2.42-r1, 6.17.3-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.17.3-gentoo-x86_64-AMD_Ryzen_7_9800X3D_8-Core_Processor-with-glibc2.42
KiB Mem: 48393704 total, 11051892 free
KiB Swap: 24196604 total, 19646156 free
Timestamp of repository gentoo: Sat, 08 Nov 2025 00:45:52 +0000
Head commit of repository gentoo: 34488b095f6a60cfb5340c09b25c8d3d85424e91