View how-many-epel-packages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import repomd | |
def count(name, rpms_repo_url, srpms_repo_url): | |
rpm_count = len(repomd.load(rpms_repo_url)) | |
srpm_count = len(repomd.load(srpms_repo_url)) | |
print(f'{name}: {rpm_count:7,} RPMs {srpm_count:6,} SRPMs') |
View how-many-epel9-packages.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import repomd | |
def count(baseurl): | |
r = repomd.load(baseurl) | |
print(f'{len(r)} - {baseurl}') | |
View pandoc-container-build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
set -eu | |
buildah unshare << EOF | |
set -eu | |
ctr=\$(buildah from scratch) | |
mnt=\$(buildah mount \$ctr) | |
dnf \ | |
--releasever 35 \ | |
--disablerepo '*' \ | |
--enablerepo fedora,updates \ |
View real-epel-vs-oracle-epel.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import repomd | |
epol7_repo = repomd.load('https://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/x86_64/') | |
epel7_repo = repomd.load('https://dl.fedoraproject.org/pub/epel/7/x86_64/') | |
epol8_repo = repomd.load('https://yum.oracle.com/repo/OracleLinux/OL8/developer/EPEL/x86_64/') | |
epel8_repo = repomd.load('https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/') | |
epel7_names = {p.name for p in epel7_repo if not p.arch == 'src'} |
View f33-latest-images.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import asyncio | |
import pathlib | |
import textwrap | |
import bs4 | |
import httpx | |
import rfc3986 |
View syncthing-ansible.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
vars: | |
user: carl | |
uid: 1000 | |
become: true | |
tasks: | |
- name: install syncthing | |
package: | |
name: syncthing |
View centos-stream-tag-fixer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import click | |
import koji | |
import koji_cli.lib | |
import rpm | |
TAG='dist-c8-stream' |
View parse-nvr.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# parse elements of nvr | |
release=${nvr##*-} | |
[[ -n "$release" ]] || fail "error parsing release from $nvr" | |
nv=${nvr%-*} | |
[[ -n "$nv" ]] || fail "error parsing name-version from $nvr" | |
version=${nv##*-} | |
[[ -n "$version" ]] || fail "error parsing version from $nv" | |
name=${nv%-*} |
View centos-compose-check.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import re | |
import click | |
import koji | |
import requests | |
KEYID = '8483c65d' |
View koji-build.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import koji | |
import koji_cli.lib | |
profile = '' | |
scmurl = '' | |
build_target = '' | |
profile_module = koji.get_profile_module(profile) | |
session = profile_module.ClientSession(profile_module.config.server) |
NewerOlder