DevOps Engineer at Smile Ukraine
# %%
"""Creating a class for keeping track of knowledge."""
import json
from dataclasses import asdict, make_dataclass
from rich import print
person = make_dataclass(
"Person",
[
("nick", str),
("name", str),
("pipelines", list[str]),
("web_services", list[str]),
("languages", list[str]),
("databases", list[str]),
("misc", list[str]),
("ongoing", list[str]),
],
namespace={"to_json": lambda self: json.dumps(asdict(self), indent=4)},
)
# %%
# @title Initializing classes and creating lists
if __name__ == "__main__":
pipelines = ['GitLab Ci', 'GitHub Actions', 'AWS CodePipeline', 'Jenkins']
web_services = ['nginx', 'apache', 'varnish', 'fastly', 'elastic', 'solr']
languages = ['YAML', 'Bash', 'Python', 'JS', 'Web']
databases = ['SQLite', 'PostgreSQL', 'Percona', 'DynamoDB', 'Redis']
misc = ['Ansible', 'Linux', 'LXC', 'Docker', 'Terraform', 'AWS']
ongoing = ['LPIC', 'Full Stack Web', 'AWS']
me = person('@Searge', 'Sergij Boremchuk',
pipelines, web_services, languages, databases, misc, ongoing)
print(me.to_json())
# %%
Thanks @rednafi for idea of script π
I'm an Early π€
π Morning 1714 commits βββββββββββββββββββββββββ 26.02 %
π Daytime 2803 commits βββββββββββββββββββββββββ 42.55 %
π Evening 1825 commits βββββββββββββββββββββββββ 27.71 %
π Night 245 commits βββββββββββββββββββββββββ 03.72 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 9 hrs 11 mins βββββββββββββββββββββββββ 54.56 %
YAML 4 hrs 49 mins βββββββββββββββββββββββββ 28.60 %
Markdown 2 hrs 4 mins βββββββββββββββββββββββββ 12.33 %
INI 13 mins βββββββββββββββββββββββββ 01.31 %
Go 12 mins βββββββββββββββββββββββββ 01.21 %
π₯ Editors:
Zsh 9 hrs 11 mins βββββββββββββββββββββββββ 54.56 %
VS Code 7 hrs 33 mins βββββββββββββββββββββββββ 44.90 %
Obsidian 5 mins βββββββββββββββββββββββββ 00.51 %
Vim 0 secs βββββββββββββββββββββββββ 00.02 %
π» Operating System:
Linux 16 hrs 50 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 09/03/2025 00:52:23 UTC