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 1809 commits βββββββββββββββββββββββββ 26.16 %
π Daytime 2891 commits βββββββββββββββββββββββββ 41.80 %
π Evening 1959 commits βββββββββββββββββββββββββ 28.33 %
π Night 257 commits βββββββββββββββββββββββββ 03.72 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 5 hrs 28 mins βββββββββββββββββββββββββ 59.24 %
YAML 2 hrs 47 mins βββββββββββββββββββββββββ 30.17 %
XML 27 mins βββββββββββββββββββββββββ 05.01 %
Markdown 24 mins βββββββββββββββββββββββββ 04.45 %
Git Config 5 mins βββββββββββββββββββββββββ 00.97 %
π₯ Editors:
Zsh 5 hrs 28 mins βββββββββββββββββββββββββ 59.24 %
VS Code 3 hrs 32 mins βββββββββββββββββββββββββ 38.21 %
Obsidian 14 mins βββββββββββββββββββββββββ 02.55 %
π» Operating System:
Linux 9 hrs 15 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 23/03/2025 00:56:53 UTC