Skip to content

Instantly share code, notes, and snippets.

View FrostyX's full-sized avatar

Jakub Kadlčík FrostyX

View GitHub Profile
#!/usr/bin/python3
import sys
import subprocess
labels = {
"effort/low": "Can be done in few hours",
"effort/medium": "Can be done in 1-2 days",
"effort/high": "Requires 3 or more days",
"""
Print how many people were sponsored into the packager group
"""
import requests
import dateutil.parser
from requests.models import PreparedRequest
def prepare_url(page=1):
import os
import time
import bugzilla
BODY_TEMPLATE = "Original {what}: {link}\n" "Opened: {date}\n" "Opened by: {user}"
DESCRIPTION_TEMPLATE = "\n\n{description}"
COMMENT_TEMPLATE = (
"\n\n---\n\n#### {user}"
" commented at {date}:\n{comment}"
"""
Find out how many packages are added to Fedora every year and how many of them
are reviews using the `fedora-review` tool.
I suppose that this script is harsh on Bugzilla's load, please don't overuse it.
See http://frostyx.cz/posts/please-keep-fedora-review-alive
"""
import bugzilla
@FrostyX
FrostyX / import-using-rpkg162
Created November 25, 2021 18:03
rpkg 1.63 regression
Downloading https://download.copr-dev.fedorainfracloud.org/results/frostyx/custom-1-TEST1637859165084719615/srpm-builds/02903649/quick-package-0-0.fc34.src.rpm
https://download.copr-dev.fedorainfracloud.org/results/frostyx/custom-1-TEST1637859165084719615/srpm-builds/02903649/quick-package-0-0.fc34.src.rpm
Acquired lock "/var/lib/dist-git/cache/lookaside/pkgs/frostyx/custom-1-TEST1637859165084719615/quick-package/import.lock"
Acquired external semaphore "/var/lib/dist-git/cache/lookaside/pkgs/frostyx/custom-1-TEST1637859165084719615/quick-package/import.lock"
make sure repos exist: frostyx/custom-1-TEST1637859165084719615/quick-package
cmd: ['/usr/share/dist-git/mkbranch', 'master', 'frostyx/custom-1-TEST1637859165084719615/quick-package'], rc: 128, msg: IGNORING: Package module frostyx/custom-1-TEST1637859165084719615/quick-package already has a branch master
Branch already exists...continuing
repo_dir: /tmp/tmpde1ycluf
clone the pkg repository into repo_dir directory
Cloning /var/lib/dist-git/git/frostyx/cu
@FrostyX
FrostyX / rubygems-license-only-in-sources.list
Last active November 14, 2021 19:40
List of all unlicensed Gems hosted on RubyGems.org
0xffffff (License: MIT)
a_a_n (License: MIT)
a_clockwork_ruby (License: MIT)
aasm-bang (License: MIT)
ab_tester (License: MIT)
abbey (License: MIT)
abcrunch (License: MIT)
abiquo-installer-tests (License: MIT)
abnormal (License: MIT)
abongo (License: MIT)
#!/usr/bin/python3
"""
Deployment script for Fedora Packager Sponsors page
Upstream: https://github.com/FrostyX/fedora-sponsors
Instance: https://docs.pagure.org/fedora-sponsors/
First authenticate to kerberos
"""
This tool lists new packages in Copr, that are not yet available in Fedora.
It's main purpose is to help us pick new interesting projects for our Fedora
Magazine articles. See https://fedoramagazine.org/series/copr/
"""
import os
import subprocess
import argparse
from datetime import date, timedelta
@FrostyX
FrostyX / copr-rpmbuild-scm.sh
Last active June 13, 2019 17:31
Example replacement for `copr-rpmbuild scm` command
#!/bin/bash
./scm2task.py --clone-url <URL> --chroot fedora-28-x86_64 > task.json
copr-rpmbuild --task-file task.json --chroot fedora-28-x86_64
@FrostyX
FrostyX / README.md
Last active May 6, 2018 20:19
Copr APIv3 - migration table
Status Function API version APIv3 name
[x] authentication_check(...) APIv1 general_proxy.auth_check
[x] get_build_details(...) APIv1 build_proxy.get
[x] cancel_build(...) APIv1 build_proxy.cancel
[x] delete_build(...) APIv1 build_proxy.delete
[x] create_new_build(...) APIv1 build_proxy.create_from_url build_proxy.create_from_urls build_proxy.create_from_file
[x] create_new_build_pypi(...) APIv1 build_proxy.create_from_pypi
[x] create_new_build_tito(...) APIv1 obsolete
[x] create_new_build_mock(..) APIv1 obsolete