About
Hello, I’m Sergij! I’m a DevOps engineer from Ukraine.
Experience
Originally I made this small script for a profile page on GitHub. But Hugo has support for Jupyter Notebook, so I decided to test it out. Unfortunately, it does not show the script execution, so if you are interested, you can check it out here.
# %%
# @title Imports dependencies
"""Creating a class for keeping track of knowledge."""
import json
from dataclasses import asdict, make_dataclass
from rich import print
# %%
# @title Make dataclass for person
person = make_dataclass(
"Person",
[
("nick", str),
("name", str),
("languages", list[str]),
("pipelines", list[str]),
("web_services", list[str]),
("databases", list[str]),
("monitoring", list[str]),
("ops", list[str]),
],
namespace={"to_json": lambda self: json.dumps(asdict(self), indent=4)},
)
# %%
# @title Initializing classes and creating lists
if __name__ == "__main__":
languages = ['YAML', 'Bash', 'Python', 'Go', 'Web']
pipelines = ['GitLab Ci', 'GitHub Actions', 'AWS CodePipeline', 'Jenkins']
web_services = ['NGINX', 'Apache HTTP Server', 'Varnish HTTP Cache', 'Fastly']
databases = ['MariaDB', 'PostgreSQL', 'DynamoDB', 'Redis']
monitoring = ['EFK', 'Grafana', 'Prometheus', 'Wazuh',]
ops = [
'Linux', 'Proxmox',
'Kubernetes', 'Docker',
'Ansible', 'Terraform'
]
me = person('@Searge', 'Serhii Boremchuk',
languages, pipelines, web_services, databases, monitoring, ops)
print(me.to_json())