Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralph Bean ralphbean

View GitHub Profile
View libsolv.patch
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 Mar 21, 2018 — forked from d3noob/.block
Simple vertical tree diagram using v4
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 3px;
}
@ralphbean
ralphbean / index.html
Created Mar 21, 2018 — forked from d3noob/.block
Simple vertical d3.js tree diagram
View index.html
<!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 Aug 3, 2017
This is a quick script to migrate the Bugzilla default assignees data from PkgDB to a YAML format.
View pkgdb-bz-overrides-to-yaml.py
#!/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 Mar 14, 2017
Showing work to be done to get datagrepper backlog validation working
View message.json
{"certificate":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVTakNDQTdPZ0F3SUJBZ0lDQWU0d0RRWUpL\nb1pJaHZjTkFRRUZCUUF3Z2FBeEN6QUpCZ05WQkFZVEFsVlQKTVFzd0NRWURWUVFJRXdKT1F6RVFN\nQTRHQTFVRUJ4TUhVbUZzWldsbmFERVhNQlVHQTFVRUNoTU9SbVZrYjNKaApJRkJ5YjJwbFkzUXhE\nekFOQmdOVkJBc1RCbVpsWkcxelp6RVBNQTBHQTFVRUF4TUdabVZrYlhObk1ROHdEUVlEClZRUXBF\nd1ptWldSdGMyY3hKakFrQmdrcWhraUc5dzBCQ1FFV0YyRmtiV2x1UUdabFpHOXlZWEJ5YjJwbFkz\nUXUKYjNKbk1CNFhEVEUxTURReU9ERXlNamN3TVZvWERUSTFNRFF5TlRFeU1qY3dNVm93Z2RneEN6\nQUpCZ05WQkFZVApBbFZUTVFzd0NRWURWUVFJRXdKT1F6RVFNQTRHQTFVRUJ4TUhVbUZzWldsbmFE\nRVhNQlVHQTFVRUNoTU9SbVZrCmIzSmhJRkJ5YjJwbFkzUXhEekFOQmdOVkJBc1RCbVpsWkcxelp6\nRXJNQ2tHQTFVRUF4TWlabUZtTFhKbGRISmgKWTJVd01TNXhZUzVtWldSdmNtRndjbTlxWldOMExt\nOXlaekVyTUNrR0ExVUVLUk1pWm1GbUxYSmxkSEpoWTJVdwpNUzV4WVM1bVpXUnZjbUZ3Y205cVpX\nTjBMbTl5WnpFbU1DUUdDU3FHU0liM0RRRUpBUllYWVdSdGFXNUFabVZrCmIzSmhjSEp2YW1WamRD\nNXZjbWN3Z1o4d0RRWUpLb1pJaHZjTkFRRUJCUUFEZ1kwQU1JR0pBb0dCQUsvaTUxcjUKdk9CemtF\nUXdZK1VBekw2ODY1dUY5eWZrM3NiZzdKcG1vTVRrRk9zTGwxRW53U0dHUGFyTUJUcU1JMWhX
@ralphbean
ralphbean / access output
Created Dec 17, 2015
one, but not the other...
View access output
+ set -xv
+ HOME=/srv/git
+ gitolite access -s python-ansi2html ralph W master
legend:
d => skipped deny rule due to ref unknown or 'any',
r => skipped due to refex not matching,
p => skipped due to perm (W, +, etc) not matching,
D => explicitly denied,
A => explicitly allowed,
F => denied due to fallthru (no rules matched)
@ralphbean
ralphbean / stats-for-decause.py
Created Aug 11, 2015
stats for decause. bodhi comments and copr builds over the last few years (from fedmsg data)
View stats-for-decause.py
""" stats-for-decause.py
so, 0 years ago is august 2014 to august 2015
1 years ago is august 2013 to august 2014
2 years ago is august 2012 to august 2013, etc..
the anonymous comments don't add up back 2 years ago because the
anonymous format changed in the message payload -- the "contains"
thing doesn't work exactly that far back.
Output:
View release-leadtime.py
""" Calculate "dev to release" leadtime.
Prints out statistics about the time between the first commit of a new feature
and the tag where that feature gets released.
Ideally, we'd like to compute the time between first commit and deployment to
production, but we don't have an easy way to reliably access logs of when
things were deployed against when they were committed in git.
A quick script for my talk on technical debt at Flock 2015.
@ralphbean
ralphbean / self-acls.py
Created Jul 14, 2014
Audit script to look for odd cases from the pkgdb
View self-acls.py
#!/usr/bin/env python
""" This script looks for people who have assigned themselves the
'approveacls' status in pkgdb by checking the fedmsg history.
Gotta first do::
$ yum install \
fedmsg \
python-fedmsg-meta-fedora-infrastructure \
python-requests \
@ralphbean
ralphbean / scrape-issues.py
Created May 9, 2014
Script to scrape all issues for a github user
View scrape-issues.py
import requests
import getpass
import sys
def get_repos(username, auth):
""" username should be a string
auth should be a tuple of username and password.
eventually, we'll switch it to use an oauth token
"""
You can’t perform that action at this time.