Skip to content

Instantly share code, notes, and snippets.

@bobpaul
bobpaul / PKGBUILD (openmpi-git)
Last active November 5, 2026 14:17
openmpi-git PKGBUILD for 2026
_base=openmpi
pkgbase=${_base}-git
# check() passes on v5.0.11
#revspec='#tag=v5.0.11'
pkgname=(
${_base}-git
${_base}-docs-git
)
conflicts=(
${_base}
@bobpaul
bobpaul / yay-ccm
Last active November 2, 2026 00:50
Shell script make yay build packages in a chroot using clean-chroot-manager
#!/bin/bash
# Provided by bobpaul under Zero Clause BSD license (see https://opensource.org/license/0bsd)
# https://gist.github.com/bobpaul/40ed7a980d5a921a21c7fdacd7de2577
# Requires `clean-croot-manager` from github.com/graysky2/clean-chroot-manager
# Save in PATH as `yay-ccm` and mark executable.
#
# 1. Nuke the chroot: `sudo ccm n`.
# 2. yay [--sudoloop] --makepkg=yay-ccm -S [...]
main debug: processing request item: port5601.sdp, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index 0
main debug: starting playback of new item
main debug: resyncing on port5601.sdp
main debug: port5601.sdp is at 0
main debug: creating new input thread
main debug: Creating an input for 'port5601.sdp'
main debug: requesting art for new input thread
@bobpaul
bobpaul / journalctl -u op-occ-enable@0
Created February 26, 2025 22:54
occ-active.sh errors on Talos II Lite bmc
Feb 26 22:47:53 obmc-single occ-active.sh[12431]: /usr/bin/occ-active.sh: line 99: [: !=: unary operator expected
Feb 26 22:47:58 obmc-single occ-active.sh[12431]: cat: can't open '/sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error': No such file or directory
Feb 26 22:47:58 obmc-single occ-active.sh[12431]: /usr/bin/occ-active.sh: line 99: [: !=: unary operator expected
Feb 26 22:48:03 obmc-single occ-active.sh[12431]: cat: can't open '/sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error': No such file or directory
Feb 26 22:48:03 obmc-single occ-active.sh[12431]: /usr/bin/occ-active.sh: line 99: [: !=: unary operator expected
Feb 26 22:48:08 obmc-single occ-active.sh[12431]: cat: can't open '/sys/bus/platform/drivers/occ/sbefifo2-dev0/occ-hwmon.2/occ_error': No such file or directory
Feb 26 22:48:08 obmc-single occ-active.sh[12431]: /usr/bin/occ-active.sh: line 99: [: !=: unary operator expected
Feb 26 22:48:13 obmc-single occ-active.sh[12431]: cat: can't open '/sys/bus/platform/
@bobpaul
bobpaul / gist:dd232ce7527137e46137ebfe09713d01
Created February 24, 2025 20:12
No WOF table on Talos II Lite, CPU serial shows 02AA883 in OpenBMC
27.49755|ISTEP 14. 7 - proc_exit_cache_contained
27.58023|ISTEP 15. 1 - host_build_stop_image
30.16315|================================================
30.16564|Error reported by fapi2 (0x3300) EID 0x90001A51
30.16812| No WOF table match found
30.16812| ModuleId 0x10 fapi2::MOD_FAPI2_PLAT_PARSE_WOF_TABLES
30.16813| ReasonCode 0x332d fapi2::RC_WOF_TABLE_NOT_FOUND
30.16814| UserData1 Number of cores : 0x0004000200000064
30.16815| UserData2 WOF Power Mode (1=Nominal, 2=Turbo) : 0x00000bb800000012
30.16816|------------------------------------------------
@bobpaul
bobpaul / btrfs filesystem show
Last active February 6, 2025 15:41
btrfs scrub failing on 2 devices in 5device "mirror"
# btrfs fi show /mnt/btrfs/
Label: 'array-root' uuid: cce741b6-b864-4e9c-bccf-057d93694bb2
Total devices 5 FS bytes used 10.50TiB
devid 1 size 3.64TiB used 3.32TiB path /dev/bcache3
devid 4 size 3.64TiB used 3.32TiB path /dev/bcache0
devid 5 size 12.73TiB used 10.03TiB path /dev/bcache1
devid 6 size 3.64TiB used 3.32TiB path /dev/bcache2
devid 7 size 2.73TiB used 2.41TiB path /dev/bcache4
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=rpm-tools-git
pkgver=4.20.0.r536.gf9f124a67
pkgrel=1
pkgdesc="RPM Package Manager"
arch=('i686' 'x86_64' 'powerpc64le')
url="https://rpm.org/"
license=('GPL')
depends=('glibc' 'elfutils' 'file' 'libarchive' 'libcap' 'lmdb' 'lua' 'nss' 'popt' 'zstd' 'libsequoia' 'libselinux')
@bobpaul
bobpaul / PKGBUILD
Created March 31, 2022 17:15
updated PKGBUILD for barrier-git and barrier-headless-git 20220331
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
_pkgname=barrier
pkgname=("${_pkgname}-git" "${_pkgname}-headless-git")
pkgver=v2.4.0+165+g420de96f
pkgrel=1
pkgdesc="Open-source KVM software based on Synergy"
arch=(any)
url="https://github.com/input-leap/barrier"
license=("custom:GPL2WithOpenSSLException")
@bobpaul
bobpaul / problem demonstration
Created August 10, 2021 16:50
`git stash --keep-index` includes changes that are on the index
###
# It is suggested to use the `--keep-index` option when using `git stash` if you don't want to stash
# changes already added to the index.
# This almost works as it leaves the index in the working tree untouched, but it includes the index tree in the patch that's stashed.
###
(>'o')>$ git init
^('o')^$ touch a
<('o'<)$ git add a
^('o')^$ git commit -am "initial commit"
[main (root-commit) 372d94c] initial commit
@bobpaul
bobpaul / 719948708.json
Last active November 9, 2020 18:37
Tabletop Simulator, Wooden Horse Racing ... updates
{
"SaveName": "Wooden Horse Racing Grid",
"GameMode": "Wooden Horse Racing",
"Date": "11/9/2020 9:10:01 AM",
"Gravity": 0.5,
"PlayArea": 0.5,
"GameType": "Game",
"GameComplexity": "Low Complexity",
"PlayerCounts": [
0,