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 1859 commits βββββββββββββββββββββββββ 26.06 %
π Daytime 3009 commits βββββββββββββββββββββββββ 42.18 %
π Evening 2008 commits βββββββββββββββββββββββββ 28.15 %
π Night 257 commits βββββββββββββββββββββββββ 03.60 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 12 hrs 51 mins βββββββββββββββββββββββββ 43.57 %
Terraform 9 hrs 24 mins βββββββββββββββββββββββββ 31.89 %
JSON 4 hrs 11 mins βββββββββββββββββββββββββ 14.18 %
HCL 1 hr 16 mins βββββββββββββββββββββββββ 04.32 %
Markdown 58 mins βββββββββββββββββββββββββ 03.28 %
π₯ Editors:
VS Code 16 hrs 20 mins βββββββββββββββββββββββββ 55.33 %
Zsh 12 hrs 51 mins βββββββββββββββββββββββββ 43.57 %
Vim 11 mins βββββββββββββββββββββββββ 00.67 %
Obsidian 3 mins βββββββββββββββββββββββββ 00.22 %
Sublime Text 3 mins βββββββββββββββββββββββββ 00.21 %
π» Operating System:
Linux 29 hrs 31 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 27/04/2025 00:07:34 UTC