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 1644 commits βββββββββββββββββββββββββ 25.27 %
π Daytime 2778 commits βββββββββββββββββββββββββ 42.69 %
π Evening 1837 commits βββββββββββββββββββββββββ 28.23 %
π Night 248 commits βββββββββββββββββββββββββ 03.81 %
π I'm Most Productive on Sunday
Monday 928 commits βββββββββββββββββββββββββ 14.26 %
Tuesday 880 commits βββββββββββββββββββββββββ 13.52 %
Wednesday 862 commits βββββββββββββββββββββββββ 13.25 %
Thursday 871 commits βββββββββββββββββββββββββ 13.39 %
Friday 876 commits βββββββββββββββββββββββββ 13.46 %
Saturday 1014 commits βββββββββββββββββββββββββ 15.58 %
Sunday 1076 commits βββββββββββββββββββββββββ 16.54 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 11 hrs 49 mins βββββββββββββββββββββββββ 47.93 %
YAML 8 hrs 50 mins βββββββββββββββββββββββββ 35.84 %
Markdown 1 hr 41 mins βββββββββββββββββββββββββ 06.84 %
Bash 1 hr 1 min βββββββββββββββββββββββββ 04.12 %
DNS Zone 47 mins βββββββββββββββββββββββββ 03.19 %
π₯ Editors:
Zsh 11 hrs 49 mins βββββββββββββββββββββββββ 47.93 %
VS Code 11 hrs 40 mins βββββββββββββββββββββββββ 47.29 %
Obsidian 57 mins βββββββββββββββββββββββββ 03.90 %
Vim 13 mins βββββββββββββββββββββββββ 00.88 %
π» Operating System:
Linux 24 hrs 40 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 20/10/2024 00:52:43 UTC