Skip to content

Instantly share code, notes, and snippets.

View jeremycline's full-sized avatar
🦀

Jeremy Cline jeremycline

🦀
View GitHub Profile
define pulp::server::rpm_repo(
$ensure = 'present',
$repo_type,
$repo_id,
$feed,
$display_name = $repo_id,
$relative_url,
$feed_ca_cert,
$feed_cert,
$feed_key,
import argparse
parser = argparse.ArgumentParser(description='This program calculates eGFR using the MDRD formula')
parser.add_argument('creatinine', type=float, help='creatinine concentration (micromol/l)')
parser.add_argument('age', type=int, help='age of the patient')
parser.add_argument('gender', choices=['male', 'female'])
parser.add_argument('-b', '--black', action='store_true')
args = parser.parse_args()
gfr = (args.creatinine ** -1.154) * 32788
<VirtualHost *:80>
LogLevel alert rewrite:trace8
RewriteEngine on
<Location /streamer/>
DirectoryIndex disabled
</Location>
</VirtualHost>
Alias /streamer /var/www/streamer
@jeremycline
jeremycline / lazy_options.rst
Last active October 28, 2015 20:24
A collection of options for the Lazy download tasks.

The Plan

After a meeting where we hashed everything out, we decided on a plan that uses the "Deferred Download" method. Beyond being correct and effecient, we also wanted to be able to track content that has been downloaded. This is done by having Pulp download content at the ContentUnit level, rather than at the file level.

Overview

Anitya Infrastructure SOP

Anitya is used by Fedora to track upstream project releases and maps them to downstream distribution packages, including (but not limited to) Fedora.

### Keybase proof
I hereby claim:
* I am jeremycline on github.
* I am jcline (https://keybase.io/jcline) on keybase.
* I have a public key whose fingerprint is AF3C 99C7 B1BF 22C0 FD41 5D2B C6C8 9D21 F194 C642
To claim this, I am signing this object:
@jeremycline
jeremycline / schema-check.py
Created August 1, 2018 20:18
Script to check fedora-messaging schema against datagrepper records
"""
To use this script, you need to:
0. Ensure your schema package has an entry point, see
https://fedora-messaging.readthedocs.io/en/latest/messages.html#packaging
1. pip install fedora_messaging requests jsonschema click
2. pip install -e <schema_package>
"""
import sys