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
Created August 27, 2024 17:49
find.sh
#!/bin/bash
# find in files
if [[ $# -eq 0 ]]; then
echo "usage: $0 \"<dir(s)>\" \"<include filename pattern (*test*/*.java)>\" \"<searchstring(s)>\" \"<exclude filename pattern (target|.svn|.git)>\" [\"-mindepth 3 -maxdepth 4\"] [-quiet]"; echo "";
echo "example: $0 . \"*test*/feature.*\" \"label|featureName\" target \"-mindepth 2 -maxdepth 4\" -q"; echo "";
exit 1;
fi
if [[ $1 ]]; then dirs=$1; else dirs="."; fi
@nickboldt
nickboldt / 0-host-setup.adoc
Last active August 26, 2024 16:54
Fedora 40 VM Config (2024)

Virtual Box Fedora 40 virtual machine setup - host setup

VBox configuration

General
* bi-directional clipboard
* [ ] disk encryption: unchanged/off

System
@nickboldt
nickboldt / copy-iibs-and-check-current-builds.sh
Last active September 26, 2024 13:19
copy latest iibs, check iib contents, then compare with latest available images
# enable VPN, login with kerberos, login to GH and quay
V; ght; quay.rhdh.login.sh
####################################
# copy :next
# for a given specific build, which might not be the most current build, use 1.y-zzz
# for the latest build, use 1.y (CVP process migth still be running on a fresh build for >2 hrs)
TAG=1.4
STREAM=1.4
@nickboldt
nickboldt / login-and-auth.sh
Created June 12, 2024 19:03
log in to cluster and authorize pulling containers from quay and RHEC
#!/bin/bash
# secrets
QUAY_TOKEN="you-bot-token-here"
RRIO_USERNAME="your-bot-here"
RRIO_PASSWORD="your-bot-pwd-here
# login to quay.io
REGISTRY="quay.io"
QUAY_USER="your-bot-user-here"
@nickboldt
nickboldt / what-have-i-done-for-backstage-lately.txt
Last active June 11, 2024 21:46
backstage contribs for committership
https://issues.redhat.com/browse/RHIDP-1551
https://github.com/backstage/mkdocs-techdocs-core/issues/167
https://github.com/backstage/mkdocs-techdocs-core/pull/168
https://github.com/backstage/mkdocs-techdocs-core/pull/181
https://issues.redhat.com/browse/RHIDP-1502
https://github.com/backstage/community-plugins/pull/16
https://github.com/backstage/community-plugins/issues/430
@nickboldt
nickboldt / kiil-renovate-actions.sh
Last active June 3, 2024 21:22
kill-renovate-actions.sh
for status in queued in_progress; do
for num in $(gh run list -s "$status" -u renovate --json databaseId | \
jq '.[]' | grep databaseId | sed -r -e "s/.+databaseId\": (.+)/\1/"); do
gh run cancel $num;
done;
done
@nickboldt
nickboldt / dynamic-plugins.configmap.yaml
Last active May 15, 2024 20:30
enable quay plugin, disable guest login resitrctions (unsafe)
data:
dynamic-plugins.yaml: |
includes:
- dynamic-plugins.default.yaml
plugins:
- package: ./dynamic-plugins/dist/janus-idp-backstage-plugin-quay
disabled: false
@janus-idp/backstage-plugin-rbac:test: Summary of all failing tests
@janus-idp/backstage-plugin-rbac:test: FAIL components/RolesList/DeleteRoleDialog.test.tsx (17.47 s)
@janus-idp/backstage-plugin-rbac:test: ● DeleteRoleDialog › enables the delete button when the role name is correctly entered
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: expect(element).not.toBeDisabled()
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: Received element is disabled:
@janus-idp/backstage-plugin-rbac:test: <button class="MuiButtonBase-root MuiButton-root MuiButton-contained Mui-disabled Mui-disabled" disabled="" tabindex="-1" type="button" />
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: Ignored nodes: comments, script, style
@nickboldt
nickboldt / README.dynamic-plugin-metadata.adoc
Last active May 3, 2024 14:59
README.dynamic-plugin-metadata.adoc

Package.json dynamic plugin metadata

To make it easier to categorize dynamic plugins, this is a proposal to add some standardized keywords, a new supported-versions field to the backstage field, and to encourage use of several standard package.json fields.

For example:

{
  "name": "@janus-idp/backstage-plugin-myplugin",
  "version": "0.7.2",
@nickboldt
nickboldt / plugin versions in janus plugins repo 1.1.x branch
Last active March 26, 2024 19:50
plugin versions in janus plugins repo 1.1.x branch vs. showcase 1.1.x branch
3scale-backend 1.4.4
aap-backend 1.5.2
acr 1.2.25
analytics-module-matomo 1.0.3
analytics-provider-segment 1.2.8
dynamic-frontend-plugin 0.0.1
dynamic-plugins-info 1.0.2
feedback 1.0.1
feedback-backend 1.1.1
jfrog-artifactory 1.2.25