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 1497 commits βββββββββββββββββββββββββ 24.11 %
π Daytime 2695 commits βββββββββββββββββββββββββ 43.40 %
π Evening 1781 commits βββββββββββββββββββββββββ 28.68 %
π Night 237 commits βββββββββββββββββββββββββ 03.82 %
π I'm Most Productive on Sunday
Monday 906 commits βββββββββββββββββββββββββ 14.59 %
Tuesday 846 commits βββββββββββββββββββββββββ 13.62 %
Wednesday 789 commits βββββββββββββββββββββββββ 12.71 %
Thursday 824 commits βββββββββββββββββββββββββ 13.27 %
Friday 826 commits βββββββββββββββββββββββββ 13.30 %
Saturday 997 commits βββββββββββββββββββββββββ 16.05 %
Sunday 1022 commits βββββββββββββββββββββββββ 16.46 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 9 hrs 47 mins βββββββββββββββββββββββββ 44.71 %
YAML 9 hrs 40 mins βββββββββββββββββββββββββ 44.20 %
Markdown 1 hr 11 mins βββββββββββββββββββββββββ 05.47 %
Other 18 mins βββββββββββββββββββββββββ 01.41 %
Bash 11 mins βββββββββββββββββββββββββ 00.89 %
π₯ Editors:
VS Code 10 hrs 35 mins βββββββββββββββββββββββββ 48.41 %
Zsh 9 hrs 47 mins βββββββββββββββββββββββββ 44.71 %
Obsidian 1 hr βββββββββββββββββββββββββ 04.60 %
Vim 29 mins βββββββββββββββββββββββββ 02.27 %
Unknown Editor 0 secs βββββββββββββββββββββββββ 00.02 %
π» Operating System:
Linux 21 hrs 53 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 06/06/2024 00:39:25 UTC