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 1550 commits βββββββββββββββββββββββββ 24.39 %
π Daytime 2732 commits βββββββββββββββββββββββββ 42.98 %
π Evening 1831 commits βββββββββββββββββββββββββ 28.81 %
π Night 243 commits βββββββββββββββββββββββββ 03.82 %
π I'm Most Productive on Sunday
Monday 926 commits βββββββββββββββββββββββββ 14.57 %
Tuesday 870 commits βββββββββββββββββββββββββ 13.69 %
Wednesday 797 commits βββββββββββββββββββββββββ 12.54 %
Thursday 835 commits βββββββββββββββββββββββββ 13.14 %
Friday 831 commits βββββββββββββββββββββββββ 13.07 %
Saturday 1045 commits βββββββββββββββββββββββββ 16.44 %
Sunday 1052 commits βββββββββββββββββββββββββ 16.55 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 15 hrs 41 mins βββββββββββββββββββββββββ 67.63 %
YAML 5 hrs 44 mins βββββββββββββββββββββββββ 24.76 %
Docker 31 mins βββββββββββββββββββββββββ 02.24 %
Bash 26 mins βββββββββββββββββββββββββ 01.90 %
Other 21 mins βββββββββββββββββββββββββ 01.52 %
π₯ Editors:
Zsh 15 hrs 41 mins βββββββββββββββββββββββββ 67.63 %
VS Code 7 hrs 13 mins βββββββββββββββββββββββββ 31.17 %
Obsidian 8 mins βββββββββββββββββββββββββ 00.63 %
Vim 7 mins βββββββββββββββββββββββββ 00.57 %
π» Operating System:
Linux 23 hrs 12 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 29/06/2024 00:40:11 UTC