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 1868 commits βββββββββββββββββββββββββ 25.25 %
π Daytime 2969 commits βββββββββββββββββββββββββ 40.14 %
π Evening 2276 commits βββββββββββββββββββββββββ 30.77 %
π Night 284 commits βββββββββββββββββββββββββ 03.84 %
π I'm Most Productive on Saturday
Monday 1041 commits βββββββββββββββββββββββββ 14.07 %
Tuesday 946 commits βββββββββββββββββββββββββ 12.79 %
Wednesday 880 commits βββββββββββββββββββββββββ 11.90 %
Thursday 924 commits βββββββββββββββββββββββββ 12.49 %
Friday 868 commits βββββββββββββββββββββββββ 11.73 %
Saturday 1391 commits βββββββββββββββββββββββββ 18.80 %
Sunday 1347 commits βββββββββββββββββββββββββ 18.21 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
sh 5 hrs 27 mins βββββββββββββββββββββββββ 57.74 %
YAML 2 hrs 8 mins βββββββββββββββββββββββββ 22.68 %
Markdown 44 mins βββββββββββββββββββββββββ 07.80 %
Bash 27 mins βββββββββββββββββββββββββ 04.91 %
INI 10 mins βββββββββββββββββββββββββ 01.93 %
π₯ Editors:
Zsh 5 hrs 27 mins βββββββββββββββββββββββββ 57.74 %
VS Code 3 hrs 26 mins βββββββββββββββββββββββββ 36.35 %
Obsidian 32 mins βββββββββββββββββββββββββ 05.78 %
Vim 0 secs βββββββββββββββββββββββββ 00.13 %
π» Operating System:
Linux 9 hrs 27 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 04/09/2024 00:46:10 UTC