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 1648 commits βββββββββββββββββββββββββ 25.23 %
π Daytime 2794 commits βββββββββββββββββββββββββ 42.78 %
π Evening 1841 commits βββββββββββββββββββββββββ 28.19 %
π Night 248 commits βββββββββββββββββββββββββ 03.80 %
π I'm Most Productive on Sunday
Monday 944 commits βββββββββββββββββββββββββ 14.45 %
Tuesday 896 commits βββββββββββββββββββββββββ 13.72 %
Wednesday 853 commits βββββββββββββββββββββββββ 13.06 %
Thursday 874 commits βββββββββββββββββββββββββ 13.38 %
Friday 874 commits βββββββββββββββββββββββββ 13.38 %
Saturday 1014 commits βββββββββββββββββββββββββ 15.53 %
Sunday 1076 commits βββββββββββββββββββββββββ 16.48 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 8 hrs 6 mins βββββββββββββββββββββββββ 44.14 %
YAML 8 hrs 3 mins βββββββββββββββββββββββββ 43.92 %
DNS Zone 55 mins βββββββββββββββββββββββββ 05.00 %
Other 35 mins βββββββββββββββββββββββββ 03.19 %
Markdown 29 mins βββββββββββββββββββββββββ 02.70 %
π₯ Editors:
VS Code 9 hrs 28 mins βββββββββββββββββββββββββ 51.61 %
Zsh 8 hrs 6 mins βββββββββββββββββββββββββ 44.14 %
Obsidian 29 mins βββββββββββββββββββββββββ 02.64 %
Vim 17 mins βββββββββββββββββββββββββ 01.61 %
π» Operating System:
Linux 18 hrs 21 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 16/10/2024 00:51:41 UTC