Skip to content

Instantly share code, notes, and snippets.

@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 <[email protected]>
_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,
@bobpaul
bobpaul / PKGBUILD
Created March 25, 2018 18:16
Updated jbidwatcher PKGBUILD for archlinux
# Maintainer: luckdragon <f41c0r [/at\] cyb3r DOT space>
# Original maintainer from the AUR3 package: yugrotavele <yugrotavele at archlinux dot us>
pkgname=jbidwatcher
pkgver=2.99pre5
pkgrel=1
pkgdesc='Allows you to monitor eBay auctions, submit bids, and snipe.'
arch=('any')
url="http://www.jbidwatcher.com/"
license=('custom:CCPL-by-nc-sa-amended')
@bobpaul
bobpaul / gnu_getopt_example.sh
Created March 20, 2018 18:24
An example showing how to use getopt
#!/usr/bin/env bash
# Time-stamp: <2017-04-27 09:57:21 kmodi>
# Time-stamp: <2018-03-20 12:58:02 bobpaul>
# derived from kmodi's gist: https://gist.github.com/kaushalmodi/74e9875d5ab0a2bc1010447f1bee5d0a
#
# Example of using getopt to parse command line options
# http://stackoverflow.com/a/29754866/1219634 Limitation: All the options
# starting with - have to be listed in --options/--longoptions, else getopt will
# error out.
# The downside is that if you intend to use this as a wrapper to some other program,
@bobpaul
bobpaul / check_password.sh
Created February 23, 2018 19:39
Keepass Password checker
#!/bin/bash
# This oneliner checks on pwnedpasswords.com to see if any passwords in your keepass password database
# are passwords that have been leaked in attacks known by haveIbeenpwned.com
#
# Your passwords are not transmitted to the website. Instead only the first 5 char of the SHA1 has is provided
# the website then returns the remaining chars of the SHA1 hash. This script fetches and compares and then
# prints the plain text of any passwords that match
#
# Usage (tested with KeePassX; other keepass clients might export differently):