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 1657 commits βββββββββββββββββββββββββ 25.08 %
π Daytime 2844 commits βββββββββββββββββββββββββ 43.05 %
π Evening 1857 commits βββββββββββββββββββββββββ 28.11 %
π Night 248 commits βββββββββββββββββββββββββ 03.75 %
π I'm Most Productive on Sunday
Monday 978 commits βββββββββββββββββββββββββ 14.80 %
Tuesday 933 commits βββββββββββββββββββββββββ 14.12 %
Wednesday 853 commits βββββββββββββββββββββββββ 12.91 %
Thursday 883 commits βββββββββββββββββββββββββ 13.37 %
Friday 874 commits βββββββββββββββββββββββββ 13.23 %
Saturday 1014 commits βββββββββββββββββββββββββ 15.35 %
Sunday 1071 commits βββββββββββββββββββββββββ 16.21 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 10 hrs 51 mins βββββββββββββββββββββββββ 49.69 %
YAML 7 hrs 41 mins βββββββββββββββββββββββββ 35.20 %
Markdown 1 hr 41 mins βββββββββββββββββββββββββ 07.74 %
Docker 26 mins βββββββββββββββββββββββββ 02.05 %
Other 24 mins βββββββββββββββββββββββββ 01.87 %
π₯ Editors:
Zsh 10 hrs 51 mins βββββββββββββββββββββββββ 49.69 %
VS Code 10 hrs 13 mins βββββββββββββββββββββββββ 46.83 %
Obsidian 33 mins βββββββββββββββββββββββββ 02.53 %
Vim 12 mins βββββββββββββββββββββββββ 00.96 %
π» Operating System:
Linux 21 hrs 50 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 10/10/2024 00:52:11 UTC