$ python update_flags.py
Updating Bugzilla: 1192486
Updating Bugzilla: 1253941
Updating Bugzilla: 1296242
Updating Bugzilla: 1437719
Updating Bugzilla: 1440955
Updating Bugzilla: 1358176
Updating Bugzilla: 1277063
Updating Bugzilla: 1192245
This file contains hidden or 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
language: python | |
python: | |
- 3.5 | |
services: | |
- postgresql | |
addons: | |
postgresql: '9.4' | |
chrome: stable | |
before_install: | |
- wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip |
This file contains hidden or 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 argparse | |
import json | |
import uuid | |
def gen_json(hypervisors, guests): | |
virtwho = {} | |
hypervisor_list = [] | |
for i in range(hypervisors): | |
guest_list = [] |
This file contains hidden or 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 multiprocessing | |
import ssl | |
from pylarion.work_item import TestCase | |
# Avoid SSL errors | |
ssl._create_default_https_context = ssl._create_unverified_context | |
items = TestCase.query('project.id:RHSAT6', fields=['status', 'author', 'approvals']) |
This file contains hidden or 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
$ pip install memory_profiler psutil | |
$ python -m memory_profiler sample_file.py |
This file contains hidden or 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
# Script to install and configure a Pulp Server onto a RHEL 6/7 x86_64 system. | |
# The official documentation can be found here: | |
# https://pulp.readthedocs.org/en/latest/user-guide/installation.html | |
export USER_NAME="" | |
export USER_PASSWORD="" | |
export POOLID="" | |
# Handles system services according to the operating system version | |
function handle_service { |
Make sure to install httpie
Create a new repository named animals
:
http --verify=no -a admin:admin POST https://localhost/pulp/api/v2/repositories/ id=animals
HTTP/1.1 201 Created
Connection: Keep-Alive
NewerOlder