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 1689 commits βββββββββββββββββββββββββ 25.24 %
π Daytime 2869 commits βββββββββββββββββββββββββ 42.87 %
π Evening 1886 commits βββββββββββββββββββββββββ 28.18 %
π Night 248 commits βββββββββββββββββββββββββ 03.71 %
π I'm Most Productive on Sunday
Monday 1000 commits βββββββββββββββββββββββββ 14.94 %
Tuesday 961 commits βββββββββββββββββββββββββ 14.36 %
Wednesday 858 commits βββββββββββββββββββββββββ 12.82 %
Thursday 895 commits βββββββββββββββββββββββββ 13.37 %
Friday 870 commits βββββββββββββββββββββββββ 13.00 %
Saturday 1046 commits βββββββββββββββββββββββββ 15.63 %
Sunday 1062 commits βββββββββββββββββββββββββ 15.87 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 10 hrs 36 mins βββββββββββββββββββββββββ 55.78 %
YAML 7 hrs 16 mins βββββββββββββββββββββββββ 38.27 %
Markdown 31 mins βββββββββββββββββββββββββ 02.81 %
Other 21 mins βββββββββββββββββββββββββ 01.87 %
TOML 6 mins βββββββββββββββββββββββββ 00.61 %
π₯ Editors:
Zsh 10 hrs 36 mins βββββββββββββββββββββββββ 55.78 %
VS Code 7 hrs 39 mins βββββββββββββββββββββββββ 40.27 %
Obsidian 27 mins βββββββββββββββββββββββββ 02.38 %
Vim 17 mins βββββββββββββββββββββββββ 01.57 %
π» Operating System:
Linux 19 hrs βββββββββββββββββββββββββ 100.00 %
Last Updated on 19/09/2024 00:51:31 UTC