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 1519 commits βββββββββββββββββββββββββ 24.13 %
π Daytime 2712 commits βββββββββββββββββββββββββ 43.09 %
π Evening 1822 commits βββββββββββββββββββββββββ 28.95 %
π Night 241 commits βββββββββββββββββββββββββ 03.83 %
π I'm Most Productive on Sunday
Monday 913 commits βββββββββββββββββββββββββ 14.51 %
Tuesday 848 commits βββββββββββββββββββββββββ 13.47 %
Wednesday 795 commits βββββββββββββββββββββββββ 12.63 %
Thursday 828 commits βββββββββββββββββββββββββ 13.16 %
Friday 827 commits βββββββββββββββββββββββββ 13.14 %
Saturday 1034 commits βββββββββββββββββββββββββ 16.43 %
Sunday 1049 commits βββββββββββββββββββββββββ 16.67 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 13 hrs 59 mins βββββββββββββββββββββββββ 58.80 %
YAML 6 hrs 45 mins βββββββββββββββββββββββββ 28.41 %
Markdown 1 hr 44 mins βββββββββββββββββββββββββ 07.31 %
Other 33 mins βββββββββββββββββββββββββ 02.35 %
INI 18 mins βββββββββββββββββββββββββ 01.29 %
π₯ Editors:
Zsh 13 hrs 59 mins βββββββββββββββββββββββββ 58.80 %
VS Code 7 hrs 57 mins βββββββββββββββββββββββββ 33.40 %
Obsidian 1 hr 20 mins βββββββββββββββββββββββββ 05.67 %
Vim 30 mins βββββββββββββββββββββββββ 02.11 %
Unknown Editor 0 secs βββββββββββββββββββββββββ 00.02 %
π» Operating System:
Linux 23 hrs 48 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 08/06/2024 00:40:35 UTC