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 1508 commits βββββββββββββββββββββββββ 24.17 %
π Daytime 2714 commits βββββββββββββββββββββββββ 43.50 %
π Evening 1768 commits βββββββββββββββββββββββββ 28.34 %
π Night 249 commits βββββββββββββββββββββββββ 03.99 %
π I'm Most Productive on Sunday
Monday 889 commits βββββββββββββββββββββββββ 14.25 %
Tuesday 825 commits βββββββββββββββββββββββββ 13.22 %
Wednesday 836 commits βββββββββββββββββββββββββ 13.40 %
Thursday 840 commits βββββββββββββββββββββββββ 13.46 %
Friday 852 commits βββββββββββββββββββββββββ 13.66 %
Saturday 985 commits βββββββββββββββββββββββββ 15.79 %
Sunday 1012 commits βββββββββββββββββββββββββ 16.22 %
π This Week I Spent My Time On
ποΈ Time Zone: Europe/Kyiv
π¬ Programming Languages:
YAML 7 hrs 21 mins βββββββββββββββββββββββββ 32.59 %
sh 6 hrs 44 mins βββββββββββββββββββββββββ 29.90 %
Markdown 6 hrs 40 mins βββββββββββββββββββββββββ 29.57 %
Go 35 mins βββββββββββββββββββββββββ 02.62 %
JSON 19 mins βββββββββββββββββββββββββ 01.45 %
π₯ Editors:
VS Code 12 hrs 56 mins βββββββββββββββββββββββββ 57.40 %
Zsh 6 hrs 44 mins βββββββββββββββββββββββββ 29.90 %
Obsidian 1 hr 36 mins βββββββββββββββββββββββββ 07.14 %
Vim 1 hr 12 mins βββββββββββββββββββββββββ 05.36 %
Sublime Text 2 mins βββββββββββββββββββββββββ 00.19 %
π» Operating System:
Linux 22 hrs 33 mins βββββββββββββββββββββββββ 100.00 %
Last Updated on 16/05/2024 00:39:18 UTC