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 1940 commits βββββββββββββββββββββββββ 25.12 %
π Daytime 3083 commits βββββββββββββββββββββββββ 39.92 %
π Evening 2410 commits βββββββββββββββββββββββββ 31.21 %
π Night 289 commits βββββββββββββββββββββββββ 03.74 %
π I'm Most Productive on Sunday
Monday 1074 commits βββββββββββββββββββββββββ 13.91 %
Tuesday 949 commits βββββββββββββββββββββββββ 12.29 %
Wednesday 933 commits βββββββββββββββββββββββββ 12.08 %
Thursday 882 commits βββββββββββββββββββββββββ 11.42 %
Friday 867 commits βββββββββββββββββββββββββ 11.23 %
Saturday 1506 commits βββββββββββββββββββββββββ 19.50 %
Sunday 1511 commits βββββββββββββββββββββββββ 19.57 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 8 hrs 50 mins βββββββββββββββββββββββββ 61.02 %
YAML 3 hrs 12 mins βββββββββββββββββββββββββ 22.14 %
Markdown 1 hr 31 mins βββββββββββββββββββββββββ 10.49 %
SSH Config 18 mins βββββββββββββββββββββββββ 02.18 %
Diff 12 mins βββββββββββββββββββββββββ 01.39 %
π₯ Editors:
Zsh 8 hrs 50 mins βββββββββββββββββββββββββ 61.02 %
VS Code 4 hrs 22 mins βββββββββββββββββββββββββ 30.26 %
Obsidian 1 hr 10 mins βββββββββββββββββββββββββ 08.13 %
Vim 5 mins βββββββββββββββββββββββββ 00.59 %
π» Operating System:
Linux 14 hrs 28 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 07/07/2024 00:44:12 UTC