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 1601 commits βββββββββββββββββββββββββ 24.61 %
π Daytime 2819 commits βββββββββββββββββββββββββ 43.34 %
π Evening 1841 commits βββββββββββββββββββββββββ 28.30 %
π Night 244 commits βββββββββββββββββββββββββ 03.75 %
π I'm Most Productive on Sunday
Monday 972 commits βββββββββββββββββββββββββ 14.94 %
Tuesday 913 commits βββββββββββββββββββββββββ 14.04 %
Wednesday 817 commits βββββββββββββββββββββββββ 12.56 %
Thursday 857 commits βββββββββββββββββββββββββ 13.17 %
Friday 855 commits βββββββββββββββββββββββββ 13.14 %
Saturday 1017 commits βββββββββββββββββββββββββ 15.63 %
Sunday 1074 commits βββββββββββββββββββββββββ 16.51 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 7 hrs 12 mins βββββββββββββββββββββββββ 63.01 %
Markdown 3 hrs 12 mins βββββββββββββββββββββββββ 28.10 %
YAML 35 mins βββββββββββββββββββββββββ 05.23 %
SSH Config 12 mins βββββββββββββββββββββββββ 01.76 %
Other 7 mins βββββββββββββββββββββββββ 01.03 %
π₯ Editors:
Zsh 7 hrs 12 mins βββββββββββββββββββββββββ 63.01 %
Obsidian 3 hrs 7 mins βββββββββββββββββββββββββ 27.33 %
VS Code 1 hr 5 mins βββββββββββββββββββββββββ 09.51 %
Vim 0 secs βββββββββββββββββββββββββ 00.14 %
π» Operating System:
Linux 11 hrs 26 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 25/07/2024 00:44:06 UTC