Skip to content

Instantly share code, notes, and snippets.

View nickboldt's full-sized avatar

Nick Boldt nickboldt

View GitHub Profile
@nickboldt
nickboldt / find.sh
Last active October 24, 2025 14:49
find.sh
#!/bin/bash
# find in files
norm="\033[0;39m"
green="\033[1;32m"
blue="\033[1;34m"
red="\033[1;31m"
usage() {
@nickboldt
nickboldt / 1. kfuxRelease.sh
Last active September 17, 2025 22:12
1.7.1 FBC push
$➔ ./build/scripts/kfuxRelease.sh --fbc :1.7.1 -v 1.7.1 --debug --stage
Inspecting registry.redhat.io/rhdh/rhdh-operator-bundle:1.7.1 ...
real 0m2.107s
user 0m0.052s
sys 0m0.057s
Found snapshot(s):
finish timestamp snapshot pipelinerun midstreamCommitSHA
@nickboldt
nickboldt / bluetoothctl.howto.adoc
Last active September 8, 2025 18:44
Fedora 20 - using bluetoothctl to connect to a bluetooth speaker or headset
  1. On Fedora 20, as root:

    yum install bluetoothctl
  2. Insert bluetooth adapter.

  3. At a termninal, run:

    bluetoothctl
@nickboldt
nickboldt / updated list of failures
Last active August 28, 2025 16:25
backstage plugin build failures
plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts:25:25 - error TS7016: Could not find a declaration file for module 'git-url-parse'. '/home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog_17/workspaces/backstage/node_modules/git-url-parse/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/git-url-parse` if it exists or add a new declaration (.d.ts) file containing `declare module 'git-url-parse';`
25 import parseGitUrl from 'git-url-parse';
~~~~~~~~~~~~~~~
plugins/kubernetes-backend/src/auth/ServiceAccountStrategy.ts:24:16 - error TS7016: Could not find a declaration file for module 'fs-extra'. '/home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog_17/workspaces/backstage/node_modules/fs-extra/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/fs-extra` if it exists or add a new declaration (.d.ts) file containing `declare module 'fs-extra';`
24 import fs from 'fs-extra';
@nickboldt
nickboldt / checkPluginsExist.sh
Last active August 8, 2025 20:02
get list of published plugins based on plugin_builds/ folder content
#!/bin/bash
SCRIPT_DIR=$(cd "$(dirname "$0")" || exit; pwd)
ROOT_DIR=$(cd "$SCRIPT_DIR"/../../ || exit; pwd)
SHOW_FOUND=0
norm="\033[0;39m"
green="\033[1;32m"
blue="\033[1;34m"
red="\033[1;31m"
@nickboldt
nickboldt / 1. collect logs for konflux pipeline and task runs.md
Last active July 16, 2025 02:51
collecting konflux pipeline and task run logs
@nickboldt
nickboldt / CRW-release-process.md
Created November 5, 2021 23:39
Process for starting a new CRW release
@nickboldt
nickboldt / metadata.adoc
Last active April 4, 2025 15:44
get RHDH metadata from container

fetch build metadata from a RHDH container

because js apps like to obfuscate things in .js files this will extract the info into useable json:

TAG=1.5-182
TAG=1.6-76
TAG=1.7-6
podman run -it --rm --entrypoint /bin/bash --user root -v .:/host-mount quay.io/rhdh/rhdh-hub-rhel9:$TAG -c \
'grep -H -R "RHDH Metadata" /opt/app-root/src/packages/app/dist/static/ | tr "," "\n" | grep Upstream -A2 -B2 | \
@nickboldt
nickboldt / scrubMR.sh
Last active March 28, 2025 16:48
delete GL MR comments (notes)
# for a given merge_request, delete its comments (notes):
# this will make reading the information in a MR much easier
# as you won't have dozens of Kfux comments to scroll past and ignore
GL_API_TOKEN="your token here"
PROJECT="rhidp%2Frhdh" # or "rhidp%2Frhdh-plugin-catalog"
MR=197
for page in 1 2 3 4; do
for id in $(curl --request GET --header "PRIVATE-TOKEN: $GL_API_TOKEN" \
--url "https://gitlab.cee.redhat.com/api/v4/projects/${PROJECT}/merge_requests/${MR}/notes?sort=desc&page=$page" \
@nickboldt
nickboldt / get-playwright-deps.sh
Created February 20, 2025 03:06
get playwright browser deps
podman run -it --rm --entrypoint /bin/bash --user root registry.access.redhat.com/ubi9/nodejs-20:9.5
# then
dnf install -q -y --allowerasing --nobest \
acl alternatives attr audit-libs basesystem bash binutils binutils-gold brotli brotli-devel bsdtar bzip2-libs ca-certificates cmake containers-common coreutils-single cpp cracklib cracklib-dicts criu criu-libs crun crypto-policies crypto-policies-scripts curl-minimal cyrus-sasl-lib dbus dbus-broker dbus-common dbus-libs dejavu-sans-fonts dmidecode dnf dnf-data elfutils-debuginfod-client elfutils-default-yama-scope elfutils-libelf elfutils-libs emacs-filesystem environment-modules expat file-libs filesystem findutils fonts-filesystem fuse-common fuse-overlayfs fuse3 fuse3-libs gawk gcc gcc-c++ gdb-gdbserver gdbm-libs gettext gettext-libs git git-core git-core-doc glib2 glibc glibc-common glibc-devel glibc-headers glibc-langpack-en glibc-locale-source glibc-minimal-langpack gmp gnupg2 gnutls gobject-introspection gpgme grep groff-base gzip ima-evm-ut