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 1649 commits βββββββββββββββββββββββββ 25.28 %
π Daytime 2786 commits βββββββββββββββββββββββββ 42.70 %
π Evening 1841 commits βββββββββββββββββββββββββ 28.22 %
π Night 248 commits βββββββββββββββββββββββββ 03.80 %
π I'm Most Productive on Sunday
Monday 934 commits βββββββββββββββββββββββββ 14.32 %
Tuesday 885 commits βββββββββββββββββββββββββ 13.57 %
Wednesday 865 commits βββββββββββββββββββββββββ 13.26 %
Thursday 872 commits βββββββββββββββββββββββββ 13.37 %
Friday 878 commits βββββββββββββββββββββββββ 13.46 %
Saturday 1014 commits βββββββββββββββββββββββββ 15.54 %
Sunday 1076 commits βββββββββββββββββββββββββ 16.49 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 14 hrs 54 mins βββββββββββββββββββββββββ 59.61 %
YAML 7 hrs 51 mins βββββββββββββββββββββββββ 31.44 %
Markdown 1 hr 25 mins βββββββββββββββββββββββββ 05.70 %
Other 19 mins βββββββββββββββββββββββββ 01.32 %
Elixir 10 mins βββββββββββββββββββββββββ 00.73 %
π₯ Editors:
Zsh 14 hrs 54 mins βββββββββββββββββββββββββ 59.61 %
VS Code 8 hrs 45 mins βββββββββββββββββββββββββ 35.04 %
Obsidian 1 hr 5 mins βββββββββββββββββββββββββ 04.37 %
Vim 9 mins βββββββββββββββββββββββββ 00.60 %
Cursor 5 mins βββββββββββββββββββββββββ 00.37 %
π» Operating System:
Linux 25 hrs βββββββββββββββββββββββββ 100.00 %
Last Updated on 26/10/2024 00:52:09 UTC