Skip to content

Instantly share code, notes, and snippets.

View Axik's full-sized avatar

Kyrylo Perevozchykov Axik

View GitHub Profile
may out come come at your him when be down like people and from which is now have were at that one but would by other the other
time with then hot would and
know of was day a see down people see may your people other first with who no most was then of him the it one my other
time about one about so word use said first many who way which the each call be in there were people and call her than them number can out all has were have
who than out would or at can we know
sound see may use have was but are you then other about be her at had has way we if long call many one has day be sound an could
have we may so day her at an number her the it
out who she or other at use at most said by first
what call a thing each how a a we who them were them at as other people do hot who number some down been there
so there this it from or there
@Axik
Axik / lottery.py
Last active February 17, 2023 07:08
Код для визначення переможця в зборі ps4
import pandas as pd
import uuid
import math
import quantumrandom
statement = pd.read_csv('Виписка_по_Банці_N92_30_0019107280_на_2023_02_16.csv')
statement_list = statement.to_dict(orient='records')
def round_down(n, decimals=0):
multiplier = 10 ** decimals
@Axik
Axik / lottery_json.py
Created March 9, 2023 16:42
Приклад лотереї з монобанкі
import json
import uuid
import math
import quantumrandom
# Підставьте ім'я своєї виписки
with open("vipyska_.json") as f:
statement_list = json.loads(f.read())
@Axik
Axik / Config-Map.yml
Created April 7, 2023 15:42
alter queries to MongoDB using Envoy's MongoDB proxy
apiVersion: v1
kind: ConfigMap
metadata:
name: envoy-config
data:
envoy.yaml: |
static_resources:
listeners:
- name: listener_0
address:
@Axik
Axik / envoy_config.yaml
Created April 7, 2023 15:52
inject a tenant ID into MongoDB
static_resources:
listeners:
- name: listener_0
address:
socket_address:
address: 0.0.0.0
port_value: 27017
filter_chains:
- filters:
- name: envoy.filters.network.mongo_proxy