Skip to content

Instantly share code, notes, and snippets.

summary: Session recording testcases
discover+:
filter: tier:2
adjust:
when: "distro <= rhel-8 or distro <= centos-8 or distro == centos-stream-8"
prepare:
- how: install
name: Enable Copr repo for Requre
copr: packit/packit-requre-main
import timeit
files = [f"file{i}" for i in range(300)]
def has_spec_for(files):
for file in files:
if file.endswith(".spec"):
return True
return False
@csomh
csomh / max-recurs.md
Last active May 21, 2020 11:28
maximum recursion depth exceeded

The call is from packit/api.py.

args:

[
<copr.v3.proxies.build.BuildProxy object at 0x7fdfb16830d0>
, 
'/build/create/upload'
, 
@csomh
csomh / retry.py
Last active December 11, 2019 16:00
Wrapping objects
import functools
class This:
def __init__(self):
self.other = 'wow'
def one(self):
print("one")
def two(self, other_param):
@csomh
csomh / .bashrc
Last active August 30, 2019 13:27
# User specific aliases and functions
alias gl='git log --pretty=format:"%C(auto)%h %s %C(#555555)/ %aN @ %ar%C(auto)%w(0,0,8)%+D" -10'
alias gfl='git log --pretty=format:"%C(auto)%h %s %C(#555555)/ %aN @ %ar%C(auto)%w(0,0,8)%+D"'
alias gll='git log'
alias gs='git status -s -b'
alias gb='git branch'
alias gd='git diff --patience'
alias gg='git grep'
alias gcl="git clean -e '*sublime*' -xd"
alias gitroot='git rev-parse --show-toplevel'
@csomh
csomh / start-server.man
Created October 9, 2018 11:45
mod_wsgi-express start-server -h
Usage: mod_wsgi-express start-server script [options]
Options:
--application-type TYPE
The type of WSGI application entry point that was
provided. Defaults to 'script', indicating the
traditional mod_wsgi style WSGI script file specified
by a filesystem path. Alternatively one can supply
'module', indicating that the provided entry point is
a Python module which should be imported using the
@csomh
csomh / working-with-minishift.md
Last active April 13, 2018 13:15
Working with minishift

Docs

If on Fedora, RHEL one should use centos iso to make pushing to registry work
$ minishift start --iso-url centos

(can this be configured in a minishift profile to be used?)

Use docker deamon from minishift
for i in {2..5}; do
a=$(printf '%*s' $i | tr ' ' '.')
p=$(printf '%*s' $i | sed 's/ /\.\.\//g')
alias $a="cd $p"
done
@csomh
csomh / patch.dif
Created November 23, 2017 09:37
osbs-docs#53
diff --git a/docs/build_process.rst b/docs/build_process.rst
index edb353d..c57696d 100644
--- a/docs/build_process.rst
+++ b/docs/build_process.rst
@@ -237,6 +237,8 @@ This arrangement moves most of the Pulp integration work to the
orchestrator build, allowing for multiple worker builds. Only the
pulp_push plugin remains in the worker build.
+.. _group-manifests:
+