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 os | |
from kinto_http import Client | |
FIREFOX_GUID = "ec8030f7-c20a-464f-9b0e-13a3a9e97384" | |
SERVER = os.getenv("SERVER") or "https://settings-writer.prod.mozaws.net/v1" | |
USERNAME = os.getenv("USERNAME") | |
PASSWORD = os.getenv("PASSWORD") | |
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
audience: balrog.stage.mozaws.net | |
managers: | |
- releng@mozilla.com | |
groups: | |
admins: | |
- email:mathieu@mozilla.com | |
- userid:google-oauth2|34351789u0y | |
policies: | |
- | |
id: super-user |
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 aiohttp | |
import asyncio | |
import json | |
import sys | |
PRODUCT = "firefox" | |
SERVER_URL = "https://buildhub.stage.mozaws.net/v1/buckets/build-hub/collections/releases/search" | |
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 io | |
import zlib | |
import sys | |
import asyncio | |
import aiohttp | |
async def download_big_file(loop): |
This file has been truncated, but you can view the full file.
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
{ | |
"type": "FeatureCollection", | |
"generator": "overpass-ide", | |
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.", | |
"timestamp": "2017-06-20T14:05:51Z", | |
"features": [ | |
{ | |
"type": "Feature", | |
"properties": { | |
"@id": "node/91614613", |
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 json | |
import os | |
import re | |
from urllib.parse import urlparse | |
import async_timeout | |
import aiohttp | |
import backoff |
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 datetime | |
import json | |
import requests | |
import kinto_http | |
def buildid2iso(buildid): | |
return datetime.datetime.strptime(buildid, "%Y%m%d%H%M%S").isoformat() |
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 async_timeout | |
import concurrent.futures | |
import random | |
import time | |
async def produce(queue, n): | |
for x in range(n): | |
# produce an item |
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
### Keybase proof | |
I hereby claim: | |
* I am leplatrem on github. | |
* I am leplatrem (https://keybase.io/leplatrem) on keybase. | |
* I have a public key whose fingerprint is 1832 9FDE 40C2 4058 7438 B7FD D1BC 0B8D A13A 19BA | |
To claim this, I am signing this object: |
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 argparse | |
import logging | |
import ruamel.yaml | |
from kinto_http import cli_utils | |
from kinto_http import exceptions as kinto_exceptions | |
logger = logging.getLogger(__name__) |