Skip to content

Instantly share code, notes, and snippets.

View fridex's full-sized avatar
🔐
Encrypting...

Fridolín Pokorný fridex

🔐
Encrypting...
View GitHub Profile
@fridex
fridex / flask===2.0.2_pypi.json
Created December 7, 2021 20:42
Results of Thoth's solver run for flask===2.0.2 from PyPI using quay.io/thoth-station/solver-rhel-8-py38:v1.10.3
{
"metadata": {
"analyzer": "thoth-solver",
"analyzer_version": "1.10.3",
"arguments": {
"python": {
"exclude_packages": null,
"index": "https://pypi.org/simple",
"limited_output": false,
"no_pretty": false,
@fridex
fridex / package-extract-211123140733-c4691cac3b91cb92.json
Last active November 23, 2021 14:26
Results of Thoth's container image analyses for quay.io/thoth-station/ps-cv-pytorch:v0.1.2
This file has been truncated, but you can view the full file.
{
"metadata": {
"analyzer": "thoth-package-extract",
"analyzer_version": "1.2.0",
"arguments": {
"extract-image": {
"image": "quay.io/thoth-station/ps-cv-pytorch:v0.1.2",
"no_pretty": false,
"no_tls_verify": false,
"output": "/mnt/workdir/package-extract-211123140733-c4691cac3b91cb92",
@fridex
fridex / package-extract-211123135517-b417d7cf10debf08.json
Created November 23, 2021 14:01
Results of Thoth's container image analyses for quay.io/fedora/fedora:34
{
"metadata": {
"analyzer": "thoth-package-extract",
"analyzer_version": "1.2.0",
"arguments": {
"extract-image": {
"image": "quay.io/fedora/fedora:34",
"no_pretty": false,
"no_tls_verify": false,
"output": "/mnt/workdir/package-extract-211123135517-b417d7cf10debf08",
@fridex
fridex / Pipfile
Created September 10, 2021 06:14
Packages
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[packages]
awscli = "==1.20.28"
botocore = "==1.21.28"
click = "==8.0.1"
colorama = "==0.4.3"
@fridex
fridex / Pipfile.lock
Created June 30, 2021 07:28
seldon-core with tensorflow Pipfile.lock
{
"_meta": {
"hash": {
"sha256": "82a12ed290169de6cf3ff88bf420740a5c4e04c69736ce73270409106ce98dd8"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.6"
},
"sources": [
@fridex
fridex / Pipfile.lock
Last active January 11, 2021 17:36
resolving stack
{
"_meta": {
"hash": {
"sha256": "4eee0da583a3e934b6f42c73441c40d91cf7ee1b46602bdc4851279a4e15dccc"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.8"
},
"sources": [
@fridex
fridex / termial_random.py
Created October 15, 2020 11:58
Termial random using CPython extension
#!/usr/bin/env python3
# pip install termial-random
from termial_random import random as termial_random
from termial_random import seed as termial_seed
import math
import os
import random
import sys
import timeit
@fridex
fridex / gist:681605f0bcf6437a71c5ed64883e0a24
Created September 4, 2020 08:09
TensorFlow and its dependency NumPy in the stack
>>> from thoth.storages import GraphDatabase
>>> graph = GraphDatabase()
>>> graph.connect()
The database schema is not in sync with library revisions, the current library revision heads: {'83e2900c3721'}, database heads: {'7c261487d4d4'}
>>> from pprint import pprint
>>> # The dict returned is formed out of extras name (None if no extra) and a list of possible direct dependencies respecting version range specification of packages.
>>> pprint(graph.get_depends_on("tensorflow", "2.2.0", "https://pypi.org/simple"))
{None: [('absl-py', '0.7.0'),
('absl-py', '0.7.1'),
('absl-py', '0.8.0'),
@fridex
fridex / termial_bench_mult.py
Created August 17, 2020 07:32
Termial random using multiplication optimization
#!/usr/bin/env python3
import math
import os
import random
import sys
import timeit
_ROUNDS = int(os.getenv("TERMIAL_DEFAULT_ROUNDS", 3))
_ITERATIONS = int(os.getenv("TERMIAL_ITERATIONS", 1000000))
@fridex
fridex / termial_bench.py
Last active February 28, 2020 20:16
Benchmark termial random
#!/usr/bin/env python3
import math
import os
import random
import sys
import timeit
_ROUNDS = int(os.getenv("TERMIAL_DEFAULT_ROUNDS", 3))
_ITERATIONS = int(os.getenv("TERMIAL_ITERATIONS", 1000000))