Skip to content

Instantly share code, notes, and snippets.

View ralphbean's full-sized avatar

Ralph Bean ralphbean

  • Red Hat
  • Rochester, NY
View GitHub Profile
@ralphbean
ralphbean / .gitignore
Created September 13, 2023 13:20
clone-feature.py
virtualenv
@ralphbean
ralphbean / mk-epic.py
Created April 17, 2023 14:27
mk-epics
# testing
@ralphbean
ralphbean / find the sbom
Created March 20, 2023 17:53
Finding what images are applied to which environments
# I have one Environment
❯ oc get Environments -o name
environment.appstudio.redhat.com/development
# I have three apps, each with some different images bound to the same Environment.
❯ oc get SnapshotEnvironmentBindings -o name
snapshotenvironmentbinding.appstudio.redhat.com/a-game-development-binding-2llmg
snapshotenvironmentbinding.appstudio.redhat.com/my-app-development-binding-24n5k
snapshotenvironmentbinding.appstudio.redhat.com/that-python-app-development-binding-sb4m8
@ralphbean
ralphbean / find-priority-mismatches.py
Last active February 28, 2023 00:35
Find all instances in a JIRA project where rank and priority disagree
#!/usr/bin/env python
""" Find all issues that have conflicting rank and priority.
This script accepts one argument: a project id. It will search for all issues of a certain type in
that project and print out all instances it can find where one issue is ranked higher than another
while also having lower priority.
"""
import argparse
import os
@ralphbean
ralphbean / .gitignore
Last active June 25, 2025 19:34
Move all child stories of epics of a feature up to higher priority (rank) than the highest story in a project
virtualenv
@ralphbean
ralphbean / libsolv.patch
Created September 18, 2018 14:38
A patch to mbs
diff --git a/module_build_service/mmd_resolver.py b/module_build_service/mmd_resolver.py
index dfb88bb..81d92ed 100644
--- a/module_build_service/mmd_resolver.py
+++ b/module_build_service/mmd_resolver.py
@@ -173,6 +173,17 @@ class MMDResolver(object):
pool.Dep("module(%s:%s)" % (n, s)).Rel(
solv.REL_EQ, pool.Dep(str(v))))
+ # Add "Provides: stream(name) = stream" and "Conflicts: stream(name) != stream",
+ # so that we make every stream of the a module conflict with every other stream of that
@ralphbean
ralphbean / index.html
Created March 21, 2018 21:01 — forked from d3noob/.block
Simple vertical tree diagram using v4
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 3px;
}
@ralphbean
ralphbean / index.html
Created March 21, 2018 19:54 — forked from d3noob/.block
Simple vertical d3.js tree diagram
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Collapsible Tree Example</title>
<style>
.node circle {
@ralphbean
ralphbean / pkgdb-bz-overrides-to-yaml.py
Created August 3, 2017 14:25
This is a quick script to migrate the Bugzilla default assignees data from PkgDB to a YAML format.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a quick script to migrate the Bugzilla default assignees data from
PkgDB to a YAML format.
"""
import argparse
import requests
import yaml
import os
@ralphbean
ralphbean / message.json
Created March 14, 2017 14:40
Showing work to be done to get datagrepper backlog validation working
{"certificate":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVTakNDQTdPZ0F3SUJBZ0lDQWU0d0RRWUpL\nb1pJaHZjTkFRRUZCUUF3Z2FBeEN6QUpCZ05WQkFZVEFsVlQKTVFzd0NRWURWUVFJRXdKT1F6RVFN\nQTRHQTFVRUJ4TUhVbUZzWldsbmFERVhNQlVHQTFVRUNoTU9SbVZrYjNKaApJRkJ5YjJwbFkzUXhE\nekFOQmdOVkJBc1RCbVpsWkcxelp6RVBNQTBHQTFVRUF4TUdabVZrYlhObk1ROHdEUVlEClZRUXBF\nd1ptWldSdGMyY3hKakFrQmdrcWhraUc5dzBCQ1FFV0YyRmtiV2x1UUdabFpHOXlZWEJ5YjJwbFkz\nUXUKYjNKbk1CNFhEVEUxTURReU9ERXlNamN3TVZvWERUSTFNRFF5TlRFeU1qY3dNVm93Z2RneEN6\nQUpCZ05WQkFZVApBbFZUTVFzd0NRWURWUVFJRXdKT1F6RVFNQTRHQTFVRUJ4TUhVbUZzWldsbmFE\nRVhNQlVHQTFVRUNoTU9SbVZrCmIzSmhJRkJ5YjJwbFkzUXhEekFOQmdOVkJBc1RCbVpsWkcxelp6\nRXJNQ2tHQTFVRUF4TWlabUZ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