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 asyncio | |
import logging | |
import os | |
import signal | |
from aiohttp import web | |
log = logging.getLogger(__name__) |
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
@startuml | |
title Ansible Roles Distribution Diagram | |
node nasa.internal { | |
actor "nasa Ansible Roles admin" as nasa_admin | |
} | |
cloud nasa.pulp.org { | |
storage "university A Ansible Roles" as content_a | |
storage "university B Ansible Roles" as content_b |
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
@startuml | |
autonumber | |
title Collection Download | |
participant Mazer | |
box "galaxy.example.com" | |
participant Nginx | |
participant "Pulp's Webserver" |
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
@startuml | |
autonumber | |
title Collection Upload and then Fetch | |
participant Mazer | |
box "galaxy.example.com" | |
participant Nginx | |
participant "Galaxy's WSGI Process" |
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 asyncio | |
import aiohttp | |
async def my_download(): | |
with open('/tmp/somefileintmp', 'wb') as the_file: | |
async with aiohttp.ClientSession(auto_decompress=False) as session: | |
async with session.get('https://repos.fedorapeople.org/pulp/pulp/fixtures/python-pypi/packages/shelf_reader-0.1-py2-none-any.whl') as resp: | |
while True: |
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
// Example testing sketch for various DHT humidity/temperature sensors | |
// Written by ladyada, public domain | |
#include <Adafruit_Sensor.h> | |
#include <Homie.h> | |
#include <DHT.h> | |
#define DHTPIN 2 // what digital pin we're connected to | |
// Uncomment whatever type you're using! |
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
@startuml | |
autonumber | |
title Lazy Call Flow Sequence Diagram | |
participant Client | |
box "Pulp Core Services (pulp.yourdomain.com)" | |
participant "Pulp Content App" | |
participant PostgreSQL |
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
{ | |
"swagger": "2.0", | |
"info": { | |
"title": "Pulp3 API", | |
"version": "v3" | |
}, | |
"host": "localhost:8000", | |
"schemes": ["http"], | |
"basePath": "/pulp/api/v3", | |
"consumes": ["application/json"], |
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
#!/bin/bash | |
rm perf_data.txt | |
for i in {1..10} | |
do | |
./perftest.sh | |
done |
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 asyncio | |
from collections import namedtuple | |
import os | |
import socket | |
import time | |
from urllib.parse import urlparse | |
import aiohttp | |
import django |