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 1799 commits βββββββββββββββββββββββββ 26.19 %
π Daytime 2864 commits βββββββββββββββββββββββββ 41.69 %
π Evening 1949 commits βββββββββββββββββββββββββ 28.37 %
π Night 257 commits βββββββββββββββββββββββββ 03.74 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
YAML 8 hrs 26 mins βββββββββββββββββββββββββ 34.70 %
sh 7 hrs 36 mins βββββββββββββββββββββββββ 31.28 %
Markdown 4 hrs 14 mins βββββββββββββββββββββββββ 17.42 %
HTML 2 hrs 2 mins βββββββββββββββββββββββββ 08.36 %
Python 37 mins βββββββββββββββββββββββββ 02.55 %
π₯ Editors:
VS Code 15 hrs 39 mins βββββββββββββββββββββββββ 64.32 %
Zsh 7 hrs 36 mins βββββββββββββββββββββββββ 31.28 %
Obsidian 49 mins βββββββββββββββββββββββββ 03.37 %
Sublime Text 14 mins βββββββββββββββββββββββββ 01.03 %
π» Operating System:
Linux 24 hrs 19 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 16/03/2025 00:53:48 UTC