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 / 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):
@bobpaul
bobpaul / PKGBUILD
Last active August 29, 2021 21:20
nzbget-ppscript-nzbtomedia-git with dependencies fixed.
# Maintainer: TwoLeaves < ohneherren at gmail dot com >
pkgname=nzbget-ppscript-nzbtomedia-git
pkgver=2627.f9dde627
pkgrel=1
arch=(any)
pkgdesc="Post-processing scripts to communicate with media managers."
url="https://github.com/clinton-hall/nzbToMedia"
license=('GPL3')