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 1840 commits βββββββββββββββββββββββββ 26.14 %
π Daytime 2964 commits βββββββββββββββββββββββββ 42.10 %
π Evening 1979 commits βββββββββββββββββββββββββ 28.11 %
π Night 257 commits βββββββββββββββββββββββββ 03.65 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 7 hrs 2 mins βββββββββββββββββββββββββ 50.67 %
YAML 5 hrs 15 mins βββββββββββββββββββββββββ 37.84 %
Markdown 33 mins βββββββββββββββββββββββββ 03.99 %
Terraform 25 mins βββββββββββββββββββββββββ 03.07 %
Docker 10 mins βββββββββββββββββββββββββ 01.22 %
π₯ Editors:
Zsh 7 hrs 2 mins βββββββββββββββββββββββββ 50.67 %
VS Code 6 hrs 38 mins βββββββββββββββββββββββββ 47.79 %
Obsidian 12 mins βββββββββββββββββββββββββ 01.53 %
π» Operating System:
Linux 13 hrs 53 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 13/04/2025 00:31:16 UTC