Skip to content

Instantly share code, notes, and snippets.

"""Test mongo response"""
TEST_MONGO_RESPONSE = {
"ID": "149248195",
"Phones": ["+7 916 943-40-07"],
"Data": [
{"key": "projectName", "value": "frontend-offer-card", "priority": 1000, "filter": {}},
{"key": "mcsRunEnv", "value": "PROD", "priority": 1000, "filter": {}},
{"key": "mcsRunEnvType", "value": "prod", "priority": 1000, "filter": {}},
{"key": "version", "value": "[frontend-offer-card][CD-123065][104328bb]", "priority": 1000, "filter": {}},
#!/usr/bin/env python3.9
# File generated by pre-commit: https://pre-commit.com
# ID: 138fd403232d2ddd5efb44317e38bf03
import os
import sys
# we try our best, but the shebang of this script is difficult to determine:
# - macos doesn't ship with python3
# - windows executables are almost always `python.exe`
# therefore we continue to support python2 for this small script
#!/usr/bin/env python3.9
# File generated by pre-commit: https://pre-commit.com
# ID: 138fd403232d2ddd5efb44317e38bf03
import os
import sys
# we try our best, but the shebang of this script is difficult to determine:
# - macos doesn't ship with python3
# - windows executables are almost always `python.exe`
# therefore we continue to support python2 for this small script
from random import choice, shuffle
from collections import Counter
symbols = "abcdefghijklmnopqrstuvwxyz"
def gen_random_string(N):
"""
Generates a random string
#! /usr/local/bin/python3
import re
from itertools import cycle
from typing import Any, Optional
from bs4 import BeautifulSoup # type: ignore
from proxy import main as proxy_main
from proxy.http.parser import HttpParser, httpParserStates, httpParserTypes
from proxy.http.proxy import HttpProxyBasePlugin
snmp_switch = <fixtures.switch.Switch object at 0x7fb86c3d1da0>
admin_auth = <misc.service.ServiceManager object at 0x7fb874804358>
task_wait = <function task_wait.<locals>._wait at 0x7fb874b26e18>
server = {'chassis': None,
'configuration': None,
'diag_error': None,
'domain': None,
'hardware_info': None,
'id': 35,
'i...': 'xbepkfbliv', 'size': 10},
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
538ae2fdecd5 redislabs/rebloom:latest "docker-entrypoint.s…" 25 seconds ago Up 23 seconds 0.0.0.0:6379->6379/tcp redis-redisbloom
e286289f9645 minio/minio "/usr/bin/docker-ent…" About a minute ago Up About a minute 0.0.0.0:9000->9000/tcp minio1
7e87a87ec0ec mongo:4.0.4 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 0.0.0.0:27017->27017/tcp mongo
c7f3002e8049 infinispan/server "./bin/launch.sh" 12 minutes ago Up 12 minutes 2157/tcp, 7800/tcp, 11221/tcp, 45700/tcp, 57600/tcp, 0.0.0.0:11222->11222/tcp wonderful_bra
./up.sh
Sending build context to Docker daemon 3.333MB
Step 1/13 : FROM quay.io/quarkus/centos-quarkus-maven:19.2.1 AS build
19.2.1: Pulling from quarkus/centos-quarkus-maven
d8d02d457314: Already exists
f473034d3b77: Already exists
Digest: sha256:8b9081c2a2060425b1d39f00c8a27ccaf547d7a622eb0c4af6986765787bd015
Status: Downloaded newer image for quay.io/quarkus/centos-quarkus-maven:19.2.1
---> 88e908470f2e
Step 2/13 : COPY core/src /usr/src/app/src